drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-6262) IndexOutOfBoundException in RecordBatchSize for empty variableWidthVector
Date Tue, 20 Mar 2018 01:53:00 GMT

    [ https://issues.apache.org/jira/browse/DRILL-6262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16405691#comment-16405691

ASF GitHub Bot commented on DRILL-6262:

Github user paul-rogers commented on the issue:

    Thanks. See how confusing it is? I wrote the darn thing originally and even I can't keep
the names straight... :-)

> IndexOutOfBoundException in RecordBatchSize for empty variableWidthVector
> -------------------------------------------------------------------------
>                 Key: DRILL-6262
>                 URL: https://issues.apache.org/jira/browse/DRILL-6262
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Flow
>            Reporter: Sorabh Hamirwasia
>            Assignee: Sorabh Hamirwasia
>            Priority: Major
>              Labels: ready-to-commit
>             Fix For: 1.14.0
> ColumnSize inside RecordBatchSizer while computing the totalDataSize for VariableWidthVector
throws IndexOutOfBoundException when the underlying vector is empty without any allocated
> This happens because the way totalDataSize is computed is using the offsetVector value
at an index n where n is total number of records in the vector. When vector is empty then
n=0 and offsetVector drillbuf is empty as well. So while retrieving value at index 0 from
offsetVector exception is thrown. 

This message was sent by Atlassian JIRA

View raw message