englefly commented on code in PR #14662: URL: https://github.com/apache/doris/pull/14662#discussion_r1036867199
########## fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4: ########## @@ -257,8 +257,15 @@ valueExpression | left=valueExpression comparisonOperator right=valueExpression #comparison ; +datetimeUnit + : YEAR | MONTH + | WEEK | DAY + | HOUR | MINUTE | SECOND + ; + primaryExpression - : CASE whenClause+ (ELSE elseExpression=expression)? END #searchedCase + : name=(TIMESTAMPDIFF | DATEDIFF) LEFT_PAREN unit=datetimeUnit COMMA startTimestamp=valueExpression COMMA endTimestamp=valueExpression RIGHT_PAREN #timestampdiff Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org