[jira] [Commented] (HIVE-21031) Array with one empty string is inserted as an empty array

2018-12-12 Thread Patrick Byrnes (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-21031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)


[jira] [Commented] (HIVE-21031) Array with one empty string is inserted as an empty array

2018-12-11 Thread Eric Wohlstadter (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-21031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)