drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Hsuan-Yi Chu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-4007) json reader treats empty list inconsistently,
Date Mon, 02 Nov 2015 19:28:27 GMT
Sean Hsuan-Yi Chu created DRILL-4007:
----------------------------------------

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

Mime
View raw message