-
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
Implement parser support for all select modifiers #16396
Conversation
Signed-off-by: Utkarsh Mahajan <utkarshrm568@gmail.com>
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
|
@Utkar5hM You'll also need to update the other test fixtures. If you run them, it should tell you how you can copy over the new expectations. |
…he select modifiers Signed-off-by: Utkarsh Mahajan <utkarshrm568@gmail.com>
now produces
which I think should fail as it is still an incorrect query as can be seen below or is this fine here? : |
@@ -8497,6 +8513,7 @@ non_reserved_keyword: | |||
| SNAPSHOT | |||
| SOME %prec ANY_SOME | |||
| SQL | |||
| SQL_BUFFER_RESULT |
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.
HIGH_PRIORITY
, SQL_SMALL_RESULT
and SQL_BIG_RESULT
need to be added to the reserved_keyword
list.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16396 +/- ##
=======================================
Coverage 68.68% 68.68%
=======================================
Files 1548 1548
Lines 199084 199116 +32
=======================================
+ Hits 136736 136766 +30
- Misses 62348 62350 +2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Utkarsh Mahajan <utkarshrm568@gmail.com>
I have updated the above. Addition of
I'm pretty new to yacc and been having a look into how to eliminate this conflicts. I might take some time understanding it. |
Signed-off-by: Manan Gupta <manan@planetscale.com>
I have fixed the shift-reduce conflicts for you. |
Signed-off-by: Utkarsh Mahajan <utkarshrm568@gmail.com>
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.
I was reading it wrong. This LGTM!
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Utkarsh Mahajan <utkarshrm568@gmail.com> Signed-off-by: Manan Gupta <manan@planetscale.com> Co-authored-by: Manan Gupta <manan@planetscale.com> Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Description
Implemented support for the following select modifiers in the sqlparser:
Added simple test cases for each of the modifiers under
go/vt/sqlparser/parse_test.go
similarly to that ofsql_calc_found_rows
.I'll update the semantics check for the following modifiers and
sql_calc_found_rows
in a separate PR as discussed on slack.Related Issue(s)
Fixes #15318
Checklist
Deployment Notes