hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Grover (JIRA)" <>
Subject [jira] [Resolved] (HIVE-3859) Expand UDF method selection logic in Function Registry
Date Thu, 10 Jan 2013 23:48:12 GMT


Mark Grover resolved HIVE-3859.

    Resolution: Invalid

It's non-trivial to separate out the UDF method selection part of the patch (see Gunther's
comment regarding it for more details). The code for this patch already exists in the parent
JIRA's patch (HIVE-2693) so this JIRA no longer applies.
> Expand UDF method selection logic in Function Registry
> ------------------------------------------------------
>                 Key: HIVE-3859
>                 URL:
>             Project: Hive
>          Issue Type: Sub-task
>          Components: UDF
>    Affects Versions: 0.9.0
>            Reporter: Mark Grover
> Presently, the Function Registry uses a constant cost of conversion to decide which method
to call. This has worked well until now but wouldn't work when Decimal types get introduced
(HIVE-2693). The reason being that a double and a decimal may be good candidates for conversion
of an int but with the present costing strategy, they both will have the same cost of conversion.
This leads to ambiguity when Hive tries to decide which method in the UDF to call if the UDF
implements methods for both double and decimal.
> This needs to get resolved before the decimal code gets committed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message