dianfu commented on a change in pull request #8472: [FLINK-12327][python] Adds 
support to submit Python Table API job in CliFrontend
URL: https://github.com/apache/flink/pull/8472#discussion_r285576248
 
 

 ##########
 File path: flink-python/pyflink/java_gateway.py
 ##########
 @@ -44,6 +43,8 @@ def get_gateway():
                 gateway_port = int(os.environ['PYFLINK_GATEWAY_PORT'])
                 gateway_param = GatewayParameters(port=gateway_port, 
auto_convert=True)
                 _gateway = JavaGateway(gateway_parameters=gateway_param)
+                # import the flink view
+                import_flink_view(_gateway)
 
 Review comment:
   What about change it as follows:
   if 'PYFLINK_GATEWAY_PORT' in os.environ:
                   gateway_port = int(os.environ['PYFLINK_GATEWAY_PORT'])
                   gateway_param = GatewayParameters(port=gateway_port, 
auto_convert=True)
                   _gateway = JavaGateway(gateway_parameters=gateway_param)
   else:
                  _gateway = launch_gateway()
   
   import_flink_view(_gateway)

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

Reply via email to