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_r316098756
##########
File path: docs/dev/table/connect.md
##########
@@ -1318,6 +1528,28 @@ format:
}
{% endhighlight %}
</div>
+
+<div data-lang="DDL" markdown="1">
+{% highlight sql %}
+CREATE TABLE MyUserTable (
+ ...
+) WITH (
+ 'format.type' = 'avro', -- required: specify
the schema type
+ 'format.record-class' = 'org.organization.types.User', -- required: define
the schema either by using an Avro specific record class
+
+ 'format.avro-schema' = ' -- or by using an
Avro schema
+ {
+ \"type\": \"record\",
+ \"name\": \"test\",
+ \"fields\" : [
+ {\"name\": \"a\", \"type\": \"long\"},
+ {\"name\": \"b\", \"type\": \"string\"}
+ ]
+ }',
+ 'format.derive-schema' = 'true' -- or use the
table's schema
Review comment:
Avro doesn't support derive schema.
----------------------------------------------------------------
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