You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Sorabh Hamirwasia (JIRA)" <ji...@apache.org> on 2018/03/17 00:35:00 UTC
[jira] [Created] (DRILL-6262) IndexOutOfBoundException in
RecordBatchSize for empty variableWidthVector
Sorabh Hamirwasia created DRILL-6262:
----------------------------------------
Summary: 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
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)