[ 
https://issues.apache.org/jira/browse/HIVE-9592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14307967#comment-14307967
 ] 

Alexander Pivovarov commented on HIVE-9592:
-------------------------------------------

now:
{code}
hive> SELECT date_add('2014-01-01', map(1,1));
FAILED: SemanticException [Error 10016]: Line 1:30 Argument type mismatch '1': 
Only primitive type arguments are accepted but map<int,int> is passed. as 
second arguments

hive> SELECT date_sub('2014-01-01', map(1,1));
FAILED: SemanticException [Error 10016]: Line 1:30 Argument type mismatch '1': 
Only primitive type arguments are accepted but map<int,int> is passed. as 
second arguments
{code}

> fix ArrayIndexOutOfBoundsException in date_add and date_sub initialize
> ----------------------------------------------------------------------
>
>                 Key: HIVE-9592
>                 URL: https://issues.apache.org/jira/browse/HIVE-9592
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>            Reporter: Alexander Pivovarov
>            Assignee: Alexander Pivovarov
>         Attachments: HIVE-9592.1.patch
>
>
> {code}
> hive> select date_add('2015-01-01', map(1,1));
> FAILED: ArrayIndexOutOfBoundsException 2
> hive> select date_sub('2015-01-01', map(1,1));
> FAILED: ArrayIndexOutOfBoundsException 2
> {code}



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

Reply via email to