hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liao, Xiaoge (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-16048) Hive UDF doesn't get the right evaluate method
Date Mon, 27 Feb 2017 12:27:45 GMT
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)

Mime
View raw message