Skip to content

float to int conversion after using Data Wrangler addin #560

@DATA2PLAYvf

Description

@DATA2PLAYvf
  1. What versions are you using?

Oracle Database version : 19.28.0.0.0

Python:
platform.platform: Windows-2022Server-10.0.20348-SP0
sys.maxsize > 2**32: True
platform.python_version: 3.12.10

oracledb client version : (19, 6, 0, 0, 0)
oracledb.version: 3.4.1

  1. Is it an error or a hang or a crash?

error link to another component

  1. What error(s) or behavior you are seeing?

I use Jupyter Notebook (inside VS code) to view data. I get oracle data via odf (connection.fetch_df_all())

When I use the plugin Data Wrangler to view data, there is an impact on the next execution of connection.fetch_df_all(). Float are converted to int !

  1. Does your application call init_oracle_client()?
    yes

  2. Include a runnable Python script that shows the problem.

import oracledb

conn = ...

odf = conn.fetch_df_all(statement='select 1.2 as VALUE from dual')

pdf = pyarrow.table(odf).to_pandas()

# first run : OK, result value : 1.2
# open the pandas dataframe via data wrangler plugin
# execute again the code (in the same python session) : KO, result value : 1.0

I think that a global constant/parameter used by oracledb is changed by data wrangler plugin, but I cannot see witch one.
If I use the pl.read_database() everything goes fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions