-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
change SQL numeric literals from float to decimal #3488
change SQL numeric literals from float to decimal #3488
Conversation
I want to highlight that I've entered issues (tracked in #3480) and commented out tests for some things that broke when using Decimal128. It does feel a bit like Decimal128 has some maturing to do to match the quality of the other numeric datatypes. But I wanted to submit this PR anyway -- if we're committed to making the change to decimal type in this way, then getting it in master is a good way to get additional eyes (and bigger brains than mine) on it. |
Codecov Report
@@ Coverage Diff @@
## master #3488 +/- ##
==========================================
- Coverage 85.75% 85.70% -0.05%
==========================================
Files 299 299
Lines 55282 55227 -55
==========================================
- Hits 47409 47335 -74
- Misses 7873 7892 +19
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
i think this change to UX is a bit too big. can we actually allow some of these functions to auto-convert from decimal to double or vice versa? i don't think asking existing queries to annotate |
THanks @kmitchener I wonder if we can perhaps mark this PR as a draft as we work through whatever other maturing Decimal needs so that we don't require |
Sure, I will switch it to draft and add another issue for changing the mathematical functions to accept and return decimal types in addition to float, where appropriate. That should reduce the amount of casting needed. |
Thanks @kmitchener |
Closing as this PR is over a year old. Please feel free to reopen it / rebase it if you plan to keep working on it |
Which issue does this PR close?
Closes #3394.
Rationale for this change
This introduces Decimal type in place of Float for numeric SQL literals.
What changes are included in this PR?
This PR:
Are there any user-facing changes?