Hive
  1. Hive
  2. HIVE-5408

Method matching needs to be improved in NumericOpMethodResolver to suport decimal type with parameters

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.12.0
    • Fix Version/s: None
    • Component/s: Types
    • Labels:
      None

      Description

      For non-generic UDFs, java reflection is used to determine which evaluate() is to be used for given input expressions. For this, method's argument type is matched against the expression's type. Currently a match exists only if the two types are exactly the same. However, for decimal with precision/and scale, we need to improve the matching, such that a method with decimal arugment should be picked for an input with, say, decimal(5,2).

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Xuefu Zhang
              Reporter:
              Xuefu Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development