[ https://issues.apache.org/jira/browse/ARROW-7831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes McKinney resolved ARROW-7831. --------------------------------- Fix Version/s: 1.0.0 Resolution: Fixed Issue resolved by pull request 6402 [https://github.com/apache/arrow/pull/6402] > [Java] unnecessary buffer allocation when calling splitAndTransferTo on > variable width vectors > ---------------------------------------------------------------------------------------------- > > Key: ARROW-7831 > URL: https://issues.apache.org/jira/browse/ARROW-7831 > Project: Apache Arrow > Issue Type: Improvement > Components: Java > Reporter: stephane campinas > Assignee: stephane campinas > Priority: Minor > Labels: pull-request-available > Fix For: 1.0.0 > > Time Spent: 5h 10m > Remaining Estimate: 0h > > In case the start of the slice is zero, a new offset buffer is unnecessarily > allocated: > https://github.com/apache/arrow/blob/master/java/vector/src/main/java/org/apache/arrow/vector/BaseVariableWidthVector.java#L743 > Since the starting offset is zero, the offset pointers don't have to be > updated. -- This message was sent by Atlassian Jira (v8.3.4#803005)