hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pivovarov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-9587) UDF decode should accept STRING_GROUP types for the second parameter
Date Thu, 05 Feb 2015 06:00:46 GMT

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

Alexander Pivovarov updated HIVE-9587:
--------------------------------------
    Description: 
1. UDF decode should accept STRING_GROUP types for the second parameter
2. Fix error messages. (replace Encode with Decode)
{code}
select decode(cast('A' as binary), cast('utf-8' as varchar(5)));
FAILED: SemanticException [Error 10016]: Line 1:59 Argument type mismatch ''utf-8'': The second
argument to Encode() must be a string
{code}

  was:1. 


> UDF decode should accept STRING_GROUP types for the second parameter
> --------------------------------------------------------------------
>
>                 Key: HIVE-9587
>                 URL: https://issues.apache.org/jira/browse/HIVE-9587
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>            Reporter: Alexander Pivovarov
>            Assignee: Alexander Pivovarov
>
> 1. UDF decode should accept STRING_GROUP types for the second parameter
> 2. Fix error messages. (replace Encode with Decode)
> {code}
> select decode(cast('A' as binary), cast('utf-8' as varchar(5)));
> FAILED: SemanticException [Error 10016]: Line 1:59 Argument type mismatch ''utf-8'':
The second argument to Encode() must be a string
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message