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_r301440570
##########
File path:
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/TableEnvironment.java
##########
@@ -320,6 +320,69 @@ static TableEnvironment create(EnvironmentSettings
settings) {
@Deprecated
String[] getCompletionHints(String statement, int position);
+ /**
+ * Evaluates single sql statement including DDLs and DMLs.
+ *
+ * <p>Note: Always use this interface to execute a sql query. It only
supports
+ * to execute one sql statement a time.
+ *
+ * <p>A DDL statement can execute to create/drop a table/view:
+ * For example, the below DDL statement would create a CSV table named
`tbl1`
+ * into the current catalog:
+ * <blockquote><pre>
+ * create table tbl1(
+ * a int,
+ * b bigint,
+ * c varchar
+ * ) with (
+ * connector = 'csv',
+ * csv.path = 'xxx'
+ * )
+ * </pre></blockquote>
+ *
+ * <p>The returns table format for different kind of statement:
+ * <ul>
+ * <li>DDL: a table with one column of VARCHAR type to describe if
this operation
Review comment:
Please update this comment
----------------------------------------------------------------
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