Liao, Xiaoge created HIVE-16048:
-----------------------------------

             Summary: Hive UDF doesn't get the right evaluate method
                 Key: HIVE-16048
                 URL: https://issues.apache.org/jira/browse/HIVE-16048
             Project: Hive
          Issue Type: Bug
          Components: UDF
    Affects Versions: 1.1.1
            Reporter: Liao, Xiaoge


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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to