You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/11/19 11:26:00 UTC

[jira] [Updated] (FLINK-17943) HiveFunctionWrapper#getUDFClass should use Thread.currentThread().getContextClassLoader()

     [ https://issues.apache.org/jira/browse/FLINK-17943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated FLINK-17943:
-----------------------------------
    Labels: pull-request-available  (was: )

> 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.10.1
>            Reporter: Caizhi Weng
>            Assignee: Rui Li
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.12.0
>
>
> {{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)