-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Table SQL / API
-
Labels:
We should use UserCodeClassLoader when new a RuntimeUDFContext.
i.e., Change the code from
this.classLoader = getClass().getClassLoader(); new RuntimeUDFContext(taskInfo, classLoader, executionConfig, cachedFiles, accumulators, metrics)
to
new RuntimeUDFContext(taskInfo, Thread.currentThread().getContextClassLoader, executionConfig, cachedFiles, accumulators, metrics)
in CollectionExecutor.
FYI. This is a problem reported from the user mailing list.
- is related to
-
FLINK-7490 UDF Agg throws Exception when flink-table is loaded with AppClassLoader
-
- Closed
-
- links to