-
Notifications
You must be signed in to change notification settings - Fork 181
Fix semicolon parsing for async query #2631
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 semicolon parsing for async query #2631
Conversation
Signed-off-by: Sean Kao <seankao@amazon.com>
Signed-off-by: Sean Kao <seankao@amazon.com>
Signed-off-by: Sean Kao <seankao@amazon.com>
noCharger
left a comment
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.
Thanks for the change!
dai-chen
left a comment
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.
Thanks for the fix!
| | DELETE FROM identifierReference tableAlias whereClause? #deleteFromTable | ||
| | UPDATE identifierReference tableAlias setClause whereClause? #updateTable | ||
| | MERGE INTO target=identifierReference targetAlias=tableAlias | ||
| | MERGE (WITH SCHEMA EVOLUTION)? INTO target=identifierReference targetAlias=tableAlias |
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.
This is latest changes from Spark 3.3.1 grammar?
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.
yes
* update sql grammar files from upstream Signed-off-by: Sean Kao <seankao@amazon.com> * resolve semicolon cause incorrect parsing Signed-off-by: Sean Kao <seankao@amazon.com> * spotlessApply Signed-off-by: Sean Kao <seankao@amazon.com> --------- Signed-off-by: Sean Kao <seankao@amazon.com> (cherry picked from commit 7f8fbe9) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* update sql grammar files from upstream * resolve semicolon cause incorrect parsing * spotlessApply --------- (cherry picked from commit 7f8fbe9) Signed-off-by: Sean Kao <seankao@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Fix issue of no streaming job when
CREATE MATERIALIZED VIEWstatement ends with a semicolon.Align parsing with upstream
opensearch-sparkrepo:https://github.com/opensearch-project/opensearch-spark/blob/b5ab7bd3ed135f1827df2cb0ca17422beb776985/flint-spark-integration/src/main/scala/org/opensearch/flint/spark/sql/FlintSparkSqlParser.scala#L58
Issues Resolved
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.