You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Aditya Kishore (JIRA)" <ji...@apache.org> on 2015/01/06 00:49:34 UTC

[jira] [Updated] (DRILL-1932) Query fails if the first record batch does not contain any record

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

Aditya Kishore updated DRILL-1932:
----------------------------------
    Attachment: 0003-DRILL-1932-Query-fails-if-the-first-record-batch-doe.patch

The attached patch builds the schema (if it changed) before returning {{IterOutcome.NONE}} in case of 0 records.

> Query fails if the first record batch does not contain any record
> -----------------------------------------------------------------
>
>                 Key: DRILL-1932
>                 URL: https://issues.apache.org/jira/browse/DRILL-1932
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Aditya Kishore
>            Assignee: Aditya Kishore
>         Attachments: 0003-DRILL-1932-Query-fails-if-the-first-record-batch-doe.patch
>
>
> If the a subscan on the first partition does not return any row, for example if the first region in an HBase table is empty, the query fails with {{NullPointerException}} at {{[FragmentWritableBatch.getEmptyBatchWithSchema()|https://github.com/apache/drill/blob/8afe10f2037612c2fd9cf46fc20e81dd73ad6d24/exec/java-exec/src/main/java/org/apache/drill/exec/record/FragmentWritableBatch.java#L82]}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)