hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Wohlstadter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-21031) Array with one empty string is inserted as an empty array
Date Wed, 12 Dec 2018 01:14:00 GMT

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

Eric Wohlstadter commented on HIVE-21031:
-----------------------------------------

[~pbyrnes]

This may be related to HIVE-20827

/cc [~teddy.choi]

> Array with one empty string is inserted as an empty array
> ---------------------------------------------------------
>
>                 Key: HIVE-21031
>                 URL: https://issues.apache.org/jira/browse/HIVE-21031
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 2.3.2
>            Reporter: Patrick Byrnes
>            Priority: Major
>
> In beeline the output of
> {code:java}
> select array("");{code}
> is:
> {code:java}
> [""]
> {code}
> However, the output of
> {code:java}
> insert into table a select array("");select * from a;{code}
> is one row of:
> {code:java}
> []{code}
>  
>  
> Similarly, the output of
> {code:java}
> select array(array()){code}
> is:
> {code:java}
> [[]]{code}
> However, the output of
> {code:java}
> insert into table b select array(array());select a,size(a) from b;{code}
> is one row of:
> {code:java}
> []{code}
>  
> Is there a way to insert an array whose only element is an empty string or an array whose
only element is an empty array into a table?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message