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)

Reply via email to