Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-2693 Add DECIMAL data type
  3. HIVE-3859

Expand UDF method selection logic in Function Registry

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgrover Mark Grover
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: