-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable unsupported PPL function expressions (#478)
Signed-off-by: Tomoyuki Morita <moritato@amazon.com>
- Loading branch information
Showing
3 changed files
with
2 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,6 @@ commands | |
: whereCommand | ||
| correlateCommand | ||
| fieldsCommand | ||
| renameCommand | ||
| statsCommand | ||
| sortCommand | ||
| headCommand | ||
|
@@ -224,8 +223,6 @@ statsFunction | |
: statsFunctionName LT_PRTHS valueExpression RT_PRTHS # statsFunctionCall | ||
| COUNT LT_PRTHS RT_PRTHS # countAllFunctionCall | ||
| (DISTINCT_COUNT | DC) LT_PRTHS valueExpression RT_PRTHS # distinctCountFunctionCall | ||
| percentileAggFunction # percentileAggFunctionCall | ||
| takeAggFunction # takeAggFunctionCall | ||
; | ||
|
||
statsFunctionName | ||
|
@@ -257,18 +254,14 @@ logicalExpression | |
| left = logicalExpression OR right = logicalExpression # logicalOr | ||
| left = logicalExpression (AND)? right = logicalExpression # logicalAnd | ||
| left = logicalExpression XOR right = logicalExpression # logicalXor | ||
| booleanExpression # booleanExpr | ||
| relevanceExpression # relevanceExpr | ||
; | ||
|
||
comparisonExpression | ||
: left = valueExpression comparisonOperator right = valueExpression # compareExpr | ||
; | ||
|
||
valueExpression | ||
: left = valueExpression binaryOperator = (STAR | DIVIDE | MODULE) right = valueExpression # binaryArithmetic | ||
| left = valueExpression binaryOperator = (PLUS | MINUS) right = valueExpression # binaryArithmetic | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ykmr1224
Author
Collaborator
|
||
| primaryExpression # valueExpressionDefault | ||
: primaryExpression # valueExpressionDefault | ||
| LT_PRTHS valueExpression RT_PRTHS # parentheticValueExpr | ||
; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
why this binary operator be removed. the ppl
source=index | where a=1+1
will fail. @ykmr1224