wuchong commented on a change in pull request #9366: [FLINK-13359][docs] Add 
documentation for DDL introduction
URL: https://github.com/apache/flink/pull/9366#discussion_r316097838
 
 

 ##########
 File path: docs/dev/table/connect.md
 ##########
 @@ -1019,6 +1165,38 @@ format:
                                #   null value (disabled by default)
 {% endhighlight %}
 </div>
+
+<div data-lang="DDL" markdown="1">
+{% highlight sql %}
+CREATE TABLE MyUserTable (
+  ...
+) WITH (
+  'format.type' = 'csv',                  -- required: specify the schema type
+
+  'format.fields.0.name' = 'lon',         -- required: define the schema 
either by using type information
+  'format.fields.0.type' = 'FLOAT',
+  'format.fields.1.name' = 'rideTime',
+  'format.fields.1.type' = 'TIMESTAMP',
+
+  'format.derive-schema' = 'true',        -- or use the table's schema
+
+  'format.field-delimiter' = ';',         -- optional: field delimiter 
character (',' by default)
+  'format.line-delimiter' = '\r\n',       -- optional: line delimiter ("\n" by 
default; otherwise
+                                          -- "\r" or "\r\n" are allowed)
+  'format.quote-character' = '''',         -- optional: quote character for 
enclosing field values ('"' by default)
 
 Review comment:
   > ('"' by default)
   
   Not "'" by default?

----------------------------------------------------------------
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