-
Notifications
You must be signed in to change notification settings - Fork 33
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 the issue that missing identifiers from ANTLR keywords #821
Conversation
Signed-off-by: Lantao Jin <[email protected]>
VALUE: 'VALUE'; | ||
USING: 'USING'; | ||
WITH: 'WITH'; | ||
|
||
// CLAUSE KEYWORDS | ||
SORTBY: 'SORTBY'; |
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.
These two keywords are not used at all in parser.
@@ -55,6 +55,35 @@ commands | |||
| fieldsummaryCommand | |||
; | |||
|
|||
commandName |
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.
Add a new variable commandName
, all new command (not function) should be added in this list.
takeAggFunction | ||
: TAKE LT_PRTHS fieldExpression (COMMA size = integerLiteral)? RT_PRTHS | ||
; | ||
|
||
percentileAggFunction | ||
: PERCENTILE LESS value = integerLiteral GREATER LT_PRTHS aggField = fieldExpression RT_PRTHS | ||
; |
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.
Never used.
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.
good catch
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.
@kt-eliatra @salyh please make sure why this is not in use
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.
Thats not from us and in the g4 files there are plenty of unused statements. And also unused code in the code base btw :-)
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.
…h-project#821) Signed-off-by: Lantao Jin <[email protected]>
Description
This PR is sourcing from fixing the problem introduced by #723:
| stats sum(1) as value
failed due to #723 introduced a keywordVALUE
but not marked as Id in ANTLR file.Then I identified there are not only
VALUE
, but also more invalid keywords as identifier in g4 file.Related Issues
Resolves #820
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.