hive-issues mailing list archives

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

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

Patrick Byrnes commented on HIVE-21031:
---------------------------------------

This issue occurs when using
{code:java}
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\t' ESCAPED BY '\\'{code}
but not when
{code:java}
STORED AS PARQUET{code}

> 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