[
https://issues.apache.org/jira/browse/DRILL-1759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mehant Baid resolved DRILL-1759.
--------------------------------
Resolution: Fixed
This is fixed in the latest master
> 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: Rahul Challapalli
> 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)