You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.36224��
Client Operating System
Darwin Nativs-MacBook-Pro.local 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:34:37 PST 2022; root:xnu-8020.101.4~2/RELEASE_X86_64 x86_64
Python version
3.8.7
Problem description
I was wondering if there is some kind of a flag / setting I can set in order to tell the connector return a numeric result as float / np.float instead of decimal.Decimal instance?
I was using the following raw sql on a cursor instance:
cursor.execute("SELECT 1.0 / 7 AS foo")
df=cursor.fetch_dataframe()
output=df.squeeze()
assertnotisinstance(output, decimal.Decimal)