twalthr 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_r314686448
##########
File path: docs/dev/table/connect.md
##########
@@ -652,6 +686,34 @@ connector:
path: "file:///path/to/whatever" # required: path to a file or directory
{% endhighlight %}
</div>
+
+<div data-lang="DDL" markdown="1">
+{% highlight sql %}
+-- CREATE a partitioned CSV table using the CREATE TABLE syntax.
+create table csv_table (
+ user bigint,
+ message string,
+ ts string
+)
+COMMENT 'This is a csv table.'
+PARTITIONED BY(user)
+WITH (
+ 'connector.type' = 'filesystem', -- required: specify to connector type
Review comment:
I agree with Jark, we should not duplicate code too much. You could have
some surrounding skeleton but then focus on the important part:
```
CREATE TABLE (...) WITH (
'connector.type' = 'filesystem'
)
```
----------------------------------------------------------------
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