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:34:34 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14265339#comment-14265339 ]
Aditya Kishore commented on DRILL-1932:
---------------------------------------
Here is the exact exception trace:
{noformat}
15:31:53.736 [2b54e118-bd54-972d-cfca-c6df52ff7d30:frag:1:1] ERROR o.a.d.e.w.f.AbstractStatusReporter - Error 1768b82c-992c-4827-9e9e-ffaae6d80c7d: Failure while running fragment.
java.lang.NullPointerException: null
at org.apache.drill.exec.record.FragmentWritableBatch.getEmptyLastWithSchema(FragmentWritableBatch.java:71) ~[classes/:na]
at org.apache.drill.exec.physical.impl.SingleSenderCreator$SingleSenderRootExec.innerNext(SingleSenderCreator.java:106) ~[classes/:na]
at org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:57) ~[classes/:na]
at org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:114) ~[classes/:na]
at org.apache.drill.exec.work.WorkManager$RunnableWrapper.run(WorkManager.java:254) [classes/:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
{noformat}
> 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
>
> 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)