hackergin commented on code in PR #25988:
URL: https://github.com/apache/flink/pull/25988#discussion_r1917856121


##########
flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/application/ScriptRunner.java:
##########
@@ -61,6 +61,7 @@ public static void run(String script, OutputStream 
outputStream) throws Exceptio
                                         
SqlGatewayRestAPIVersion.getDefaultVersion())
                                 .build(),
                         Executors.newDirectExecutorService());
+        sessionContext.open();

Review Comment:
   This is mainly because there will be a null pointer problem with close, so 
open is called. It is related to the scheduler. Here it can indeed be removed. 
Perhaps we need to remove the scheduler-related parameters before submitting 
the script.



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

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to