KurtYoung commented on a change in pull request #8844:
[FLINK-12951][table-planner] Add logic to bridge DDL to table source(…
URL: https://github.com/apache/flink/pull/8844#discussion_r301548736
##########
File path:
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java
##########
@@ -290,6 +292,40 @@ public String explain(boolean extended) {
return planner.getCompletionHints(statement, position);
}
+ @Override
+ public Table sql(String statement) {
+ List<Operation> operations = planner.parse(statement);
+ Preconditions.checkState(operations.size() <= 1,
Review comment:
change to operations.size() == 1? Otherwise it will be unsafe for your next
line: `Operation operation = operations.get(0);`
----------------------------------------------------------------
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]
With regards,
Apache Git Services