-
Notifications
You must be signed in to change notification settings - Fork 85
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
fix floating to int128 and negative to int128 #2374
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2374 +/- ##
=======================================
Coverage 91.01% 91.02%
=======================================
Files 1015 1015
Lines 35823 35825 +2
=======================================
+ Hits 32606 32611 +5
+ Misses 3217 3214 -3
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return cast(-170141183460469231731687303715884105728, "int128")
reports error Cast failed. 170141183460469231731687303715884105728 is not within INT128 range.
while -170141183460469231731687303715884105728 should be the smallest INT128 value.
I think we only allow -170141183460469231731687303715884105727 to 170141183460469231731687303715884105727 to avoid possible overflows. |
Looks like duckdb fails with this number. Not sure what is the limit. |
limit is -170141183460469231731687303715884105727 not -170141183460469231731687303715884105728. otherwise it will fail here for duckdb. |
1c9bdba
to
fba4023
Compare
Ah, okay. So maybe we need to modify the error message? |
fix #2334