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

Sean Hsuan-Yi Chu updated DRILL-4007:
-------------------------------------
    Attachment: b.json
                a.json

> json reader treats empty list inconsistently,
> ---------------------------------------------
>
>                 Key: DRILL-4007
>                 URL: https://issues.apache.org/jira/browse/DRILL-4007
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - JSON
>            Reporter: Sean Hsuan-Yi Chu
>            Assignee: Sean Hsuan-Yi Chu
>            Priority: Critical
>         Attachments: a.json, b.json
>
>
> Depending on where the empty list shows up, the empty list could be treated 
> as empty-list or just a null. 
> Running the following query on the folder with files in the attachment can 
> reproduce the observation:
> {code}
> +--------+
> |   a    |
> +--------+
> | null   |
> | ["b"]  |
> | []     |
> +--------+
> {code}
> Note that both first and third records come from
> {code}
> {“a”:[]}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to