wenlong88 commented on a change in pull request #18215:
URL: https://github.com/apache/flink/pull/18215#discussion_r783614658
##########
File path:
flink-table/flink-sql-parser/src/main/codegen/includes/parserImpls.ftl
##########
@@ -1738,6 +1765,28 @@ SqlNode SqlRichExplain() :
}
}
+/**
+* Parses a execute statement.
+*/
+SqlNode SqlExecute() :
+{
+ SqlParserPos startPos;
+ SqlNode stmt;
+}
+{
+ <EXECUTE>{ startPos = getPos(); }
+ (
+ stmt = SqlStatementSet()
+ |
+ stmt = OrderedQueryOrExpr(ExprContext.ACCEPT_QUERY)
Review comment:
yes, OrderedQueryOrExpr includes with clause. do you have any concern on
this? Following is the example:
execute|explain insert into t1 with t2 as (select * from t3) select * from
t2;
execute|explain with t2 as (select * from t3) select * from t2;
execute|explain statement set begin insert into t1 with t2 as (select * from
t3) select * from t2;
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]