You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2018/04/26 02:31:00 UTC

[jira] [Created] (DRILL-6357) Unexpected column "**" when reading a JSON file

Paul Rogers created DRILL-6357:
----------------------------------

             Summary: Unexpected column "**" when reading a JSON file
                 Key: DRILL-6357
                 URL: https://issues.apache.org/jira/browse/DRILL-6357
             Project: Apache Drill
          Issue Type: Bug
    Affects Versions: 1.13.0
            Reporter: Paul Rogers


Consider the following JSON file, {{all-null.json}}:

{noformat}
{a: null}
{a: null}
{noformat}

Do a simple query:

{code}
SELECT * FROM `json/all-null.json`;
{code}

The column name is unexpectedly reported as "**":

{noformat}
+-------+
|  **   |
+-------+
| null  |
| null  |
+-------+
{noformat}

However, change the second value to "foo" and the results are as expected:

{noformat}
+-------+
|   a   |
+-------+
| null  |
| foo   |
+-------+
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)