[ 
https://issues.apache.org/jira/browse/IMPALA-10997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17486719#comment-17486719
 ] 

ASF subversion and git services commented on IMPALA-10997:
----------------------------------------------------------

Commit 4734a681f3780a947dfe998f78f8b358e2f422ca in impala's branch 
refs/heads/master from Steve Carlin
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=4734a68 ]

IMPALA-10997: Refactor Java Hive UDF code.

In its current form, Impala supports Java UDFs that are derived from
the UDF.class.

The UDF.class is legacy code and Hive now supports implementation off
of the GenericUDF.class.

This rewrite will allow for easier extension to support GenericUDFs.

Among added classes:

UdfExecutor: The entry point class which is directly accessed by the
backend. This is a wrapper class to the UDF class that will handle
the evaluation of rows.

HiveUdfExecutor: Abstract base class that contains code that is common
to the legacy UDF.class and the GenericUDF.class when it is eventually
created.

HiveUdfExecutorLegacy: Implementation of the code that is UDF.class
specific.

HiveUdfLoader: Class responsible for using reflection to instantiate
the UDF class

HiveJavaFunction: Interface for retrieving objects pertaining to the
UDF function class.

HiveLegacyJavaFunction: Class representing the metadata for the legacy
UDF class.

Also added some functionality which captures the error when a user
attempts to create a function and the function doesn't exist. The
unit test checking this is the UDFRound function which no longer
exists in hive-exec.jar so it is now in a load-java-udfs-fail.test
test file.

Change-Id: Idc9572e15fbed1876412159b99dddd3fb4d37174
Reviewed-on: http://gerrit.cloudera.org:8080/18020
Reviewed-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Csaba Ringhofer <[email protected]>
Tested-by: Csaba Ringhofer <[email protected]>


> Refactor code for UDF implementation
> ------------------------------------
>
>                 Key: IMPALA-10997
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10997
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Frontend
>            Reporter: Steve Carlin
>            Priority: Major
>
> In its current form, Impala supports Java UDFs that are derived from the 
> UDF.class.  
> The UDF.class is legacy code and Hive now supports implementation off of the 
> GenericUDF.class.
> This Jira is to track the refactoring the current UDF code to allow easier 
> implementation when we eventually support the newer class.  Common code will 
> be put in a base HiveExecutor class and UDF.class specific code will be in a 
> derived class.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to