drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-4605) Flatten doesn't return nested arrays correctly when Union is enabled
Date Wed, 13 Apr 2016 21:15:25 GMT
Jacques Nadeau created DRILL-4605:
-------------------------------------

             Summary: Flatten doesn't return nested arrays correctly when Union is enabled
                 Key: DRILL-4605
                 URL: https://issues.apache.org/jira/browse/DRILL-4605
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Jacques Nadeau


File: 
{code}
{a:[[1,2,3], [4]]}
{code}

{code}
set `exec.enable_union_type` = false;
{code}

{code}
select flatten(a) as a from dfs.tmp.`blue.json`;
+----------+
|    a     |
+----------+
| [1,2,3]  |
| [4]      |
+----------+
{code}

{code}
set `exec.enable_union_type` = true;
{code}

{code}
select flatten(a) as a from dfs.tmp.`blue.json`;
+-------+
|   a   |
+-------+
| null  |
| null  |
+-------+
{code}





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

Mime
View raw message