Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
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.
Attachments
Issue Links
- is related to
-
FLINK-7490 UDF Agg throws Exception when flink-table is loaded with AppClassLoader
- Closed
- links to