You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Ben Becker (JIRA)" <ji...@apache.org> on 2013/11/14 00:57:20 UTC

[jira] [Updated] (DRILL-293) Sort operator throws NPE on empty record batch

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

Ben Becker updated DRILL-293:
-----------------------------

    Attachment: DRILL-293.patch

Attached a simple patch based on master (review board is down).  The fix is also included in the my [{{DRILL-229-rebased-master}} branch|https://github.com/vrtx/incubator-drill/commit/be357a54d80434599385d103862776afd37df5d6#diff-b9e688920f1cc2eaa28b829b49958bbbR137].

> Sort operator throws NPE on empty record batch
> ----------------------------------------------
>
>                 Key: DRILL-293
>                 URL: https://issues.apache.org/jira/browse/DRILL-293
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Ben Becker
>            Assignee: Ben Becker
>         Attachments: DRILL-293.patch
>
>
> To reproduce, run simply run a sort test with a record count of 0.  A sample test case is available [in this branch|https://github.com/vrtx/incubator-drill/commit/c84cb30823514e18620ad5ee799c36c4f772f7b4] .
> The issue is that the builder is null when there are zero records.  The contract of the RecordBatch interface is not clear; the SVRemover seems to require a schema in this state.



--
This message was sent by Atlassian JIRA
(v6.1#6144)