You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/05/11 15:26:00 UTC

[jira] [Commented] (IMPALA-11162) Provide support for Hive Generic UDFs

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

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

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

IMPALA-11162: Support GenericUDFs for Hive

Hive has 2 types of UDFs. This commit contains limited
support for the second generation UDFs called GenericUDFs.

The main limitations are as follows:

Decimal types are not supported.  The Impala framework determines
the precision and scale of the decimal return type. However, the
Hive GenericUDFs allow the capability to choose its own return
type based on the parameters. Until this can be resolved, it is
safer to forbid decimals from being used. Note that this
limitation currently exists in the first generation of Hive Java
UDFs.

Complex types are not supported.

Functions are not extracted from the jar file. The first generation
of Hive UDFs allowed this because the method prototypes are
explicitly defined and can be determined at function creation time. For
GenericUDFs, the return types are determined based on the parameters
passed in when running a query.

For the same reason as above, GenericUDFs cannot be made permanent.
They will need to be recreated everytime the server is restarted.
This is a severe limitation and will be resolved in the near future.

Change-Id: Ie6fd09120db413fade94410c83ebe8ff104013cd
Reviewed-on: http://gerrit.cloudera.org:8080/18295
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Csaba Ringhofer <cs...@cloudera.com>


> Provide support for Hive Generic UDFs
> -------------------------------------
>
>                 Key: IMPALA-11162
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11162
>             Project: IMPALA
>          Issue Type: New Feature
>          Components: Frontend
>            Reporter: Steve Carlin
>            Assignee: Steve Carlin
>            Priority: Major
>
> Impala supports the first generation of Hive UDFs. 
> Impala should also support the second generaton of Hive UDFs.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org