Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
0.9.0
-
None
-
None
Description
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.