dianfu commented on a change in pull request #8561: [FLINK-12588][python] Add
TableSchema for Python Table API.
URL: https://github.com/apache/flink/pull/8561#discussion_r290196744
##########
File path: flink-python/pyflink/table/table_descriptor.py
##########
@@ -179,6 +179,19 @@ def __init__(self):
self._j_schema = gateway.jvm.Schema()
super(Schema, self).__init__(self._j_schema)
+ def schema(self, table_schema):
+ """
+ Sets the schema with field names and the types. Required.
+
+ This method overwrites existing fields added with
+ :func:`~pyflink.table.table_descriptor.Schema.field`.
+
+ :param schema: The :class:`TableSchema` object.
Review comment:
schema -> table_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