You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2016/04/13 23:15:25 UTC

[jira] [Created] (DRILL-4605) Flatten doesn't return nested arrays correctly when Union is enabled

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)