You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Gautam Kumar Parai (JIRA)" <ji...@apache.org> on 2018/05/25 18:03:00 UTC

[jira] [Assigned] (DRILL-3964) CTAS fails with NPE when source JSON file is empty

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

Gautam Kumar Parai reassigned DRILL-3964:
-----------------------------------------

    Assignee: Gautam Kumar Parai

> CTAS fails with NPE when source JSON file is empty
> --------------------------------------------------
>
>                 Key: DRILL-3964
>                 URL: https://issues.apache.org/jira/browse/DRILL-3964
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Parquet
>    Affects Versions: 1.2.0
>            Reporter: Abhishek Girish
>            Assignee: Gautam Kumar Parai
>            Priority: Major
>
> {code:sql}
> CREATE TABLE `complex.json` AS
>   SELECT id,
>          gbyi,
>          gbyt,
>          fl,
>          nul,
>          bool,
>          str,
>          sia,
>          sfa,
>          soa,
>          ooa,
>          oooi,
>          ooof,
>          ooos,
>          oooa
> FROM   dfs.`/drill/testdata/complex/json/complex.json`;
> Error: SYSTEM ERROR: NullPointerException
> Fragment 0:0
> [Error Id: 97679667-412a-475f-aebf-e935405c7330 on drill-democ1:31010] (state=,code=0)
> {code}
> {code:sql}
> > select * from dfs.`/drill/testdata/complex/json/complex.json` limit 1;
> +--+
> |  |
> +--+
> +--+
> No rows selected (0.295 seconds)
> {code}



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