dianfu commented on a change in pull request #8916: [FLINK-12897][python][docs]
Improve the Python Table API docs by adding more examples
URL: https://github.com/apache/flink/pull/8916#discussion_r298472502
##########
File path: docs/dev/table/connect.md
##########
@@ -754,6 +966,34 @@ The CSV format can be used as follows:
{% endhighlight %}
</div>
+<div data-lang="python" markdown="1">
+{% highlight python %}
+.with_format(
+ Csv()
+
+ # required: define the schema either by using type information
+ .schema(DataTypes.ROW(...))
+
+ # or use the table's schema
+ .derive_schema()
+
+ .field_delimiter(';') # optional: field delimiter
character (',' by default)
+ .line_delimiter("\r\n") # optional: line delimiter ("\n"
by default;
Review comment:
sometimes double quotes is used and sometimes single quotes is used. It will
be better to keep it consistent.
----------------------------------------------------------------
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