-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
sqlparser: use integers instead of literals for Length/Precision #15256
Conversation
Signed-off-by: Vicent Marti <[email protected]>
Signed-off-by: Vicent Marti <[email protected]>
Signed-off-by: Vicent Marti <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
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.
LGTM
Signed-off-by: Vicent Marti <[email protected]>
Signed-off-by: Vicent Marti <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #15256 +/- ##
==========================================
+ Coverage 67.44% 67.47% +0.02%
==========================================
Files 1560 1561 +1
Lines 193017 193186 +169
==========================================
+ Hits 130180 130344 +164
- Misses 62837 62842 +5 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Vicent Marti <[email protected]>
…/Precision (#15256) (#15269) Signed-off-by: Dirkjan Bussink <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
…/Precision (#15256) (#15268) Signed-off-by: Dirkjan Bussink <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
Description
As discussed with @dbussink, this is a potential fix for #15257
Dirkjan believes the aggregation lifting issue is scoped to the specific literals in
CastExpr
because it appears it's the onlyExpr
that embedsLiteral
s inside. I'm not 100% sure this covers all our bases, but I definitely agree that these length/precision fields should not beLiteral
, they should be stored directly as optional integers.So here we go. The PR also includes some related cleanups for more optional integers in the
sqlparser
package.cc @systay @frouioui @GuptaManan100
Related Issue(s)
Checklist
Deployment Notes