wuchong commented on a change in pull request #9081: [FLINK-13209] Following 
FLINK-12951: Remove TableEnvironment#sql and …
URL: https://github.com/apache/flink/pull/9081#discussion_r302459613
 
 

 ##########
 File path: 
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/TableEnvironment.java
 ##########
 @@ -430,11 +362,51 @@ static TableEnvironment create(EnvironmentSettings 
settings) {
         * }
         * </pre>
         *
-        * @deprecated Use {@link #sql(String)}.
+        * <p>A DDL statement can also execute to create a table:
+        * 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'
 
 Review comment:
   Give a valid with property? 
   ```
   connector.type = 'filesystem',
   connector.property-version = '1',
   connector.path = '/path/to/file',
   format.type = 'csv',
   format.property-version = '1',
   format.derive-schema = 'true'
   ```
   However, I'm not sure the above properties work.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to