Caizhi Weng created FLINK-17943:
-----------------------------------
Summary: HiveFunctionWrapper#getUDFClass should use Thread.currentThread().getContextClassLoader()
Key: FLINK-17943
URL:
https://issues.apache.org/jira/browse/FLINK-17943 Project: Flink
Issue Type: Bug
Components: Connectors / Hive
Affects Versions: 1.11.0
Reporter: Caizhi Weng
{{HiveFunctionWrapper#getUDFClass}} currently uses {{Class.forName(className)}} to load Hive UDF classes, while {{HiveFunctionWrapper#createFunction}} uses {{Thread.currentThread().getContextClassLoader()}}.
{{HiveFunctionWrapper#getUDFClass}} should also use {{Thread.currentThread().getContextClassLoader()}} as it is loading user classes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)