-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REAL data type issue with Pandas #83
Comments
@njnes how should I deal with this? It works fine with a normal float, but not with a REAL. MonetDB returns type |
but a REAL != FLOAT (sql one). The real == c-float, double == c-double, float(<=24) == c-float, float(>24) == double == c-double |
float in sql will be rewritten into a real or double, ie writting float(24) or real, should be the same. |
diff --git a/monetdbe/_cffi.py b/monetdbe/_cffi.py
|
this issue has been resolved and wil be included in the 0.9 release |
When creating a table with REAL or FLOAT(24), a float32 data type Pandas dataframe inserted with cursor.insert() becomes corrupted when retrieved with fetchdf(). The code below will reproduce what I am experiencing.
This is the output of the above code:
0 1.0
1 2.0
2 3.0
3 4.0
0 2.000000e+00
1 5.120001e+02
2 2.105353e-314
3 -5.345402e-309
The text was updated successfully, but these errors were encountered: