Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16048

Hive UDF doesn't get the right evaluate method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.1.1
    • None
    • Query Planning
    • None

    Description

      Hive UDF doesn't get the right evaluate method if there is variable parameter in the method of evaluate.
      For example:
      public class TestUdf extends UDF {
      public String evaluate(String a, String b) throws ParseException

      { return a + ":" + b; }

      public String evaluate(String a, String... b) throws ParseException

      { return b[0] + ":" + a; }

      }

      the udf may get the wrong result

      Attachments

        1. HIVE-16048.3.patch
          2 kB
          Jason Liao

        Activity

          People

            Unassigned Unassigned
            jasonliao Jason Liao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: