yangzhg opened a new issue #4176:
URL: https://github.com/apache/incubator-doris/issues/4176
For now our grammar file `fe/fe-core/src/main/cup/sql_parser.cup` has many
reduce conflicts, we should remove those conflicts
```
[WARNING]
/home/disk6/yang/workspace/baidu/bdg/doris/core/fe/fe-core/src/main/cup/sql_parser.cup
[0:0]: *** Shift/Reduce conflict found in state #1141
between opt_with_label ::= (*)
and opt_with_label ::= (*) KW_WITH KW_LABEL ident
under symbol KW_WITH
Resolved in favor of shifting.
[WARNING]
/home/disk6/yang/workspace/baidu/bdg/doris/core/fe/fe-core/src/main/cup/sql_parser.cup
[0:0]: *** Shift/Reduce conflict found in state #919
between opt_field_term ::= (*)
and opt_field_term ::= (*) KW_COLUMNS KW_TERMINATED KW_BY
STRING_LITERAL
under symbol KW_COLUMNS
Resolved in favor of shifting.
[WARNING]
/home/disk6/yang/workspace/baidu/bdg/doris/core/fe/fe-core/src/main/cup/sql_parser.cup
[0:0]: *** Shift/Reduce conflict found in state #209
between keyword ::= KW_DATE (*)
and non_pred_expr ::= KW_DATE (*) STRING_LITERAL
under symbol STRING_LITERAL
Resolved in favor of shifting.
[WARNING]
/home/disk6/yang/workspace/baidu/bdg/doris/core/fe/fe-core/src/main/cup/sql_parser.cup
[0:0]: *** Shift/Reduce conflict found in state #860
between opt_common_hints ::= (*)
and opt_common_hints ::= (*) LBRACKET ident_list RBRACKET
under symbol LBRACKET
Resolved in favor of shifting.
[WARNING]
/home/disk6/yang/workspace/baidu/bdg/doris/core/fe/fe-core/src/main/cup/sql_parser.cup
[0:0]: *** Shift/Reduce conflict found in state #202
between keyword ::= KW_TIMESTAMP (*)
and non_pred_expr ::= KW_TIMESTAMP (*) STRING_LITERAL
under symbol STRING_LITERAL
Resolved in favor of shifting.
[WARNING]
/home/disk6/yang/workspace/baidu/bdg/doris/core/fe/fe-core/src/main/cup/sql_parser.cup
[0:0]: *** Shift/Reduce conflict found in state #399
between keyword ::= time_unit (*)
and timestamp_arithmetic_expr ::= function_name LPAREN time_unit (*)
COMMA expr COMMA expr RPAREN
under symbol COMMA
Resolved in favor of shifting.
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]