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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16491141#comment-16491141 ] 

ASF GitHub Bot commented on DRILL-3964:
---------------------------------------

gparai opened a new pull request #1290: DRILL-3964 : Fix NPE in WriterRecordBatch when 0 rows
URL: https://github.com/apache/drill/pull/1290
 
 
   @amansinha100 / @vdiravka can you please review the PR? Thanks!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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