lsyldliu commented on code in PR #20001:
URL: https://github.com/apache/flink/pull/20001#discussion_r913761290
##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java:
##########
@@ -260,23 +266,26 @@ public static TableEnvironmentImpl create(Configuration
configuration) {
}
public static TableEnvironmentImpl create(EnvironmentSettings settings) {
- final ClassLoader classLoader = settings.getUserClassLoader();
+ final MutableURLClassLoader userClassLoader =
+ ClassLoaderUtil.buildMutableURLClassLoader(
+ new URL[0], settings.getUserClassLoader(),
settings.getConfiguration());
Review Comment:
I think it is needed for SqlClient and SqlGateway, `pipeline.jars` is used
for distributed execution, regarding to pure table environment user, it maybe
not needed when compile query. If use custom jar when compile phase, he should
add the jar explicitly.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]