Closed lucarnu closed 9 months ago
Hi @lucarnu , thank you for reporting this issue. For an immediate work around please provide client_protocol_version=1
as a connection parameter. I will update this issue as I have more information
Hi @lucarnu , we will release a fix for this in our February release.
Hi @lucarnu, we've fixed this in 2.1.0. thanks for your patience :)
Driver version
redshift-connector-2.0.918
Redshift version
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.61687 (Redshift serverless)
Client Operating System
Ubuntu 22.04.3 LTS on wsl
Python version
Python 3.11.6
Table schema
Problem description
The result of following request by the functions fetchall/fetchone/fetch_dataframe should give a dataframe with value 135430.11999999999500 :
The result of the given request is a dataframe with value -49037.32073709552116 .
No error message is available.
This behavior is not induced by pandas itself:
The problem persists on some variations of the cast like numeric(30,19).
An explicit cast to float or double precision in redshift leads to the expected behavior.
Python Driver trace logs
No trace log is available.
Reproduction code