drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1767) Add support for nullable maps
Date Sun, 04 Jan 2015 23:58:35 GMT

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

Jacques Nadeau updated DRILL-1767:
----------------------------------
    Fix Version/s: Future
          Summary: Add support for nullable maps  (was: kvgen ignores null scalars but not
empty maps in the output)

> Add support for nullable maps
> -----------------------------
>
>                 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)

Mime
View raw message