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 2015/01/05 00:57:51 UTC

[jira] [Updated] (DRILL-1759) Flatten : When the item to be flattened contains a repeated map, we are loosing some data

     [ https://issues.apache.org/jira/browse/DRILL-1759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Nadeau updated DRILL-1759:
----------------------------------
    Fix Version/s: 0.8.0
         Assignee: Parth Chandra

> Flatten : When the item to be flattened contains a repeated map, we are loosing some data 
> ------------------------------------------------------------------------------------------
>
>                 Key: DRILL-1759
>                 URL: https://issues.apache.org/jira/browse/DRILL-1759
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill, Storage - JSON, Storage - Parquet
>            Reporter: Rahul Challapalli
>            Assignee: Parth Chandra
>            Priority: Critical
>             Fix For: 0.8.0
>
>
> git.commit.id.abbrev=108d29f
> Dataset :
> {code}
> { "rm": [ {"map": [{ "a": "foo"}]}]}
> {code}
> When I try to flatten 'rm' we are losing the contents of 'map'
> {code}
> select flatten(rm) from `json_kvgenflatten/nested1.json`;
> +------------+
> |   EXPR$0   |
> +------------+
> | {"map":[]} |
> +------------+
> {code}
> This behavior can also be replicated on a parquet dataset as well. Let me know if you need anything else.



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