fsk119 commented on a change in pull request #19070: URL: https://github.com/apache/flink/pull/19070#discussion_r828650401
########## File path: flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/gateway/context/SessionContext.java ########## @@ -261,7 +261,20 @@ public void addJar(String jarPath) { return; } + // merge the jars in config with the jars maintained in session + Set<URL> jarsInConfig; + try { + jarsInConfig = + new HashSet<>( + ConfigUtils.decodeListFromConfig( + sessionConfiguration, PipelineOptions.JARS, URL::new)); + } catch (MalformedURLException e) { + throw new SqlExecutionException( + "Failed to parse the option `pipeline.jars` in configuration.", e); + } Review comment: nit: Would be better to move these codes to the single helper method. -- 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