drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aditya Kishore (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1932) Query fails if the first record batch does not contain any record
Date Mon, 05 Jan 2015 23:49:34 GMT

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

Mime
View raw message