[
https://issues.apache.org/jira/browse/DRILL-6262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16405167#comment-16405167
]
ASF GitHub Bot commented on DRILL-6262:
---------------------------------------
GitHub user sohami opened a pull request:
https://github.com/apache/drill/pull/1175
DRILL-6262: IndexOutOfBoundException in RecordBatchSize for empty var…
…iableWidthVector
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sohami/drill DRILL-6262
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/1175.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1175
----
commit dbde22ea37c486b483601ab551e7fc7c23fb96b8
Author: Sorabh Hamirwasia <shamirwasia@...>
Date: 2018-03-16T23:57:12Z
DRILL-6262: IndexOutOfBoundException in RecordBatchSize for empty
variableWidthVector
----
> 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
> 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 memory.
> 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
(v7.6.3#76005)