You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Rahul Challapalli (JIRA)" <ji...@apache.org> on 2015/04/24 23:48:40 UTC

[jira] [Closed] (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 ]

Rahul Challapalli closed DRILL-1759.
------------------------------------

Verified and added the below testcase

Functional/Passing/json_kvgenflatten/flatten/flattenbug_DRILL-1759.q

> 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)