drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parth Chandra (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-1759) Flatten : When the item to be flattened contains a repeated map, we are loosing some data
Date Thu, 22 Jan 2015 22:50:34 GMT

    [ https://issues.apache.org/jira/browse/DRILL-1759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14288372#comment-14288372
] 

Parth Chandra commented on DRILL-1759:
--------------------------------------

Jason has made some fixes that should have addressed this. I cannot reproduce this any more.
Can you verify?


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

Mime
View raw message