You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Timothy Farkas (JIRA)" <ji...@apache.org> on 2018/03/12 18:21:00 UTC
[jira] [Created] (DRILL-6234) VarCharVector setValueCount can throw
out of memory exception
Timothy Farkas created DRILL-6234:
-------------------------------------
Summary: VarCharVector setValueCount can throw out of memory exception
Key: DRILL-6234
URL: https://issues.apache.org/jira/browse/DRILL-6234
Project: Apache Drill
Issue Type: Improvement
Reporter: Timothy Farkas
Assignee: Timothy Farkas
Doing the following will throw an Index out of bounds exception.
{code}
final VarCharVector vector = new VarCharVector(field, allocator);
vector.allocateNew();
vector.getMutator().setValueCount(100);
{code}
The expected behavior is to resize the array appropriately. If an index is uninitialized it can return an empty byte array.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)