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_r314658216
 
 

 ##########
 File path: docs/dev/table/connect.md
 ##########
 @@ -753,6 +815,70 @@ connector:
   sink-partitioner-class: org.mycompany.MyPartitioner  # optional: used in 
case of sink partitioner custom
 {% endhighlight %}
 </div>
+
+<div data-lang="DDL" markdown="1">
+{% highlight sql %}
+-- CREATE a 011 version Kafka table start from the earliest offset(as table 
source)
+-- and append mode(as table sink).
+create table MyUserTable (
+  user bigint,
+  message string,
+  ts string
+) with (
+  'connector.type' = 'kafka',       
+
+  'connector.version' = '0.11',     -- required: valid connector versions are
+                                    -- "0.8", "0.9", "0.10", "0.11", and 
"universal"
+
+  'connector.topic' = 'topic_name', -- required: topic name from which the 
table is read
+
+  'update-mode' = 'append',         -- required: update mode when used as 
table sink, 
+                                    -- only support append mode now.
+
+  'format.type' = 'avro',           -- required: specify which format to 
deserialize(as table source) 
 
 Review comment:
   Remove this.

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