Patrick Byrnes created HIVE-21031:
-------------------------------------
Summary: 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
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)