-
Notifications
You must be signed in to change notification settings - Fork 181
Fix antlr4 parser issues #3492
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 antlr4 parser issues #3492
Conversation
Signed-off-by: Lantao Jin <ltjin@amazon.com>
Signed-off-by: Lantao Jin <ltjin@amazon.com>
|
CI failure related to opensearch-project/job-scheduler#757 |
| | EARLIEST | ||
| | EARLIEST_TIME | ||
| | LATEST | ||
| | LATEST_TIME |
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.
why remove this?
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.
Those keywords are not present in lexer.g4, another words, they are invalid here.
| | VARIABLE_COUNT_THRESHOLD | ||
| | FREQUENCY_THRESHOLD_PERCENTAGE | ||
| | WITH |
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.
Just confirming, do we need these in https://github.com/opensearch-project/opensearch-spark/blob/main/ppl-spark-integration/src/main/antlr4/OpenSearchPPLParser.g4 as well?
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.
Just confirming, do we need these in https://github.com/opensearch-project/opensearch-spark/blob/main/ppl-spark-integration/src/main/antlr4/OpenSearchPPLParser.g4 as well?
No for first two. WITH has already be presented in ppl-spark.
* Fix antlr4 parser issues Signed-off-by: Lantao Jin <ltjin@amazon.com> * Case insensitive lexer Signed-off-by: Lantao Jin <ltjin@amazon.com> --------- Signed-off-by: Lantao Jin <ltjin@amazon.com> Signed-off-by: xinyual <xinyual@amazon.com>
Description
Related Issues
Resolves #3491
Check List
--signoff.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.