imay commented on a change in pull request #456: Add routine load statement URL: https://github.com/apache/incubator-doris/pull/456#discussion_r244900197
########## File path: fe/src/main/cup/sql_parser.cup ########## @@ -1103,6 +1146,87 @@ opt_cluster ::= :} ; +// Routine load statement +create_routine_load_stmt ::= + KW_CREATE KW_ROUTINE KW_LOAD ident:jobName KW_ON table_name:dbTableName + opt_load_property_list:loadPropertyList + opt_properties:properties + KW_FROM ident:type LPAREN key_value_map:typeProperties RPAREN + {: + RESULT = new CreateRoutineLoadStmt(jobName, dbTableName, loadPropertyList, properties, type, typeProperties); + :} + ; + +opt_load_property_list ::= + {: + RESULT = null; + :} + | opt_load_property:loadProperty + {: + RESULT = Lists.newArrayList(loadProperty); + :} + | opt_load_property_list:list COMMA opt_load_property:loadProperty + {: + list.add(loadProperty); + RESULT = list; + :} + ; + +opt_load_property ::= Review comment: ```suggestion load_property ::= ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org