-
Notifications
You must be signed in to change notification settings - Fork 177
Fix asc/desc keyword behavior for sort command #4651
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
Changes from all commits
e4f55cf
3619cc3
eb6536e
2c8f5ea
aeb9fea
647cc90
428c47b
00ddb41
18e09f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -251,7 +251,7 @@ dedupCommand | |
| ; | ||
|
|
||
| sortCommand | ||
| : SORT (count = integerLiteral)? sortbyClause (ASC | A | DESC | D)? | ||
| : SORT (count = integerLiteral)? sortbyClause | ||
| ; | ||
|
|
||
| reverseCommand | ||
|
|
@@ -819,7 +819,10 @@ fieldList | |
| ; | ||
|
|
||
| sortField | ||
| : (PLUS | MINUS)? sortFieldExpression | ||
| : (PLUS | MINUS) sortFieldExpression (ASC | A | DESC | D) # invalidMixedSortField | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need to define invalid syntax? wouldn't it fail parse without this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would fail the parse but added this to have a more clear error for when the two syntaxes are mixed |
||
| | (PLUS | MINUS) sortFieldExpression # prefixSortField | ||
| | sortFieldExpression (ASC | A | DESC | D) # suffixSortField | ||
| | sortFieldExpression # defaultSortField | ||
| ; | ||
|
|
||
| sortFieldExpression | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.