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

 ##########
 File path: flink-python/pyflink/table/table.py
 ##########
 @@ -532,6 +533,9 @@ def insert_into(self, table_path, *table_path_continued):
         j_table_path = to_jarray(gateway.jvm.String, table_path_continued)
         self._j_table.insertInto(table_path, j_table_path)
 
+    def get_schema(self):
+        return TableSchema(java_object=self._j_table.getSchema())
 
 Review comment:
   Add Python Doc with `Returns the schema of this table.`?

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