dianfu commented on a change in pull request #8401: [FLINK-12407][python] Add 
all table operators align Java Table API.
URL: https://github.com/apache/flink/pull/8401#discussion_r284622626
 
 

 ##########
 File path: flink-python/pyflink/table/table_environment.py
 ##########
 @@ -153,9 +240,51 @@ def __init__(self, j_tenv):
         self._j_tenv = j_tenv
         super(StreamTableEnvironment, self).__init__(j_tenv)
 
+    def get_config(self):
+        """
+        Returns the table config to define the runtime behavior of the Table 
API.
+
+        :return: Current :class:`TableConfig`.
+        """
+        table_config = TableConfig()
+        table_config._j_table_config = self._j_tenv.getConfig()
+        table_config.is_stream = True
 
 Review comment:
   Currently there are two ways to set the table config properties: in 
TableConfig and TableConfig.Builder. What about removing all the set methods in 
TableConfig?

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