hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liao, Xiaoge (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-16048) Hive UDF doesn't get the right evaluate method
Date Mon, 06 Mar 2017 01:37:32 GMT

     [ https://issues.apache.org/jira/browse/HIVE-16048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Liao, Xiaoge updated HIVE-16048:
--------------------------------
    Attachment: HIVE-16048.3.patch

> 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
>         Attachments: HIVE-16048.3.patch
>
>
> 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