[ 
https://issues.apache.org/jira/browse/ORC-847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

William Hyun closed ORC-847.
----------------------------

> Do Not Create Empty Array in StringGroupFromBinaryTreeReader
> ------------------------------------------------------------
>
>                 Key: ORC-847
>                 URL: https://issues.apache.org/jira/browse/ORC-847
>             Project: ORC
>          Issue Type: Improvement
>    Affects Versions: 1.8.0
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> {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.20.10#820010)

Reply via email to