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:58:34 UTC
[jira] [Updated] (DRILL-1767) kvgen ignores null scalars but not
empty maps in the output
[ https://issues.apache.org/jira/browse/DRILL-1767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Nadeau updated DRILL-1767:
----------------------------------
Issue Type: Improvement (was: Bug)
> kvgen ignores null scalars but not empty maps in the output
> -----------------------------------------------------------
>
> Key: DRILL-1767
> URL: https://issues.apache.org/jira/browse/DRILL-1767
> Project: Apache Drill
> Issue Type: Improvement
> Components: Functions - Drill, Storage - JSON
> Reporter: Rahul Challapalli
> Fix For: Future
>
>
> git.commit.id.abbrev=108d29f
> Dataset :
> {code}
> {
> "id":1,
> "keys":{"m1":{"v7":{"k1":"k2"}},"m2":{"v1":"abc","v2":{"w1":0.24}}}
> }
> {
> "id":1,
> "keys":{"m1":{"v7":{"k1":"k3"}},"m2":{"v1":"abc","v2":{"w1":0.2}}}
> }
> {code}
> Query :
> {code}
> select kvgen(keys) from `json_kvgenflatten/temp.json`;
> +------------+
> | EXPR$0 |
> +------------+
> | [{"key":"m1","value":{"v7":{"k1":"k2"},"v2":{}}},{"key":"m2","value":{"v7":{},"v1":"abc","v2":{"w1":0.24}}}] |
> | [{"key":"m1","value":{"v7":{"k1":"k3"},"v2":{}}},{"key":"m2","value":{"v7":{},"v1":"abc","v2":{"w1":0.2}}}] |
> +------------+
> 2 rows selected (0.508 seconds)
> {code}
> In the above output , drill seems to be ignoring the empty scalars (v1) but not empty maps (v2)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)