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
{{ message }}
Repository navigation
sql result discrepency with sqlite, postgres and duckdb bug #3 #13784
sqlite returns a -96059504 result, both duckdb and postgres fail with integer overflow errors.
I think if a db support integer promotion the result from sqlite is actually correct. I have no idea how DF is coming up with it's result unless it's wrapping the value or truncating it somehow.
After re-generating the .slt files to change REAL -> FLOAT8 this and another similar error is the only blocker I think to having the full test suite complete without failures. That doesn't mean that there isn't errors - it just would mean that all queries that DF handles without an error return the same results as sqlite or if not that the same results as postgres (ish, float rounded to 4 decimal places)
Activity
jonahgao commentedon Dec 24, 2024
If fail_on_overflow is enabled, Datafusion will return an overflow error.
Maybe we need a new config option for
fail_on_overflow, or even enable it by default.Omega359 commentedon Jan 11, 2025
After re-generating the .slt files to change REAL -> FLOAT8 this and another similar error is the only blocker I think to having the full test suite complete without failures. That doesn't mean that there isn't errors - it just would mean that all queries that DF handles without an error return the same results as sqlite or if not that the same results as postgres (ish, float rounded to 4 decimal places)
Omega359 commentedon Jan 11, 2025
Another example
Omega359 commentedon Feb 24, 2025
Closed as fixed