Hive
  1. Hive
  2. HIVE-5203

FunctionRegistry.getMethodInternal() should prefer method arguments with closer affinity to the original argument types

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: Types, UDF
    • Labels:
      None

      Description

      When the function registry is trying to determine the best version of UDF evaluate() to use based on a set of arguments passed in, it should prefer methods where the argument types are more related to the original types. For example if varchar is used with UDFFromUnixTime(), varchar is convertible to both the double and string versions of evaluate() for that UDF. In this case we would prefer that the function registry select the string version over the double version, since varchar and string are both string types.

      This doesn't really affect any of the existing types, but comes into play with the addition of the varchar type (HIVE-4844).

      1. HIVE-5203.2.patch
        13 kB
        Jason Dere
      2. HIVE-5203.1.patch
        5 kB
        Jason Dere

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Jason Dere
              Reporter:
              Jason Dere
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development