David Mollitor created ORC-847:
----------------------------------

             Summary: Do Not Create Empty Array in 
StringGroupFromBinaryTreeReader
                 Key: ORC-847
                 URL: https://issues.apache.org/jira/browse/ORC-847
             Project: ORC
          Issue Type: Improvement
            Reporter: David Mollitor
            Assignee: David Mollitor


{code:java|title=StringGroupFromBinaryTreeReader.java}
    @Override
    public void setConvertVectorElement(int elementNum) throws IOException {
      byte[] bytes = inBytesColVector.vector[elementNum];
      int start = inBytesColVector.start[elementNum];
      int length = inBytesColVector.length[elementNum];

      // Use an static empty array instead of creating a zero-length array
      byte[] string = new byte[length == 0 ? 0 : 3 * length - 1];
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to