Skip to content

Conversation

@lriggs
Copy link

@lriggs lriggs commented Jul 15, 2025

apache#44344: [Java] fix VectorSchemaRoot.getTransferPair for NullVector (apache#44631)
Do not throw UnsupportedOperationException("Tried to get allocator from NullVector") from VectorSchemaRoot.slice() when slicing a VSR containing a NullVector or ZeroVector. Details in apache#44344

Added unit test that would trigger an UnsupportedOperationException on the legacy path.

Authored-by: Maksim Yegorov 59841139+maksimyego-db@users.noreply.github.com
Signed-off-by: David Li li.davidm96@gmail.com

myegorov added 2 commits July 14, 2025 17:00
apache#44627)

Empty MapVector.splitAndTransfer throws `java.lang.IndexOutOfBoundsException`. Details in  apache#44626

Fixed for MapVector as for other vector types in apache#41066

Added unit test mimicking the scenario we've observed where MapVector's offset buffer capacity is 0.
* GitHub Issue: apache#44626

Authored-by: Maksim Yegorov <59841139+maksimyego-db@users.noreply.github.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
…ector (apache#44631)

Do not throw [UnsupportedOperationException("Tried to get allocator from NullVector")](https://github.com/apache/arrow/blob/release-18.0.0-rc0/java/vector/src/main/java/org/apache/arrow/vector/NullVector.java#L160) from [VectorSchemaRoot.slice()](https://github.com/apache/arrow/blob/release-18.0.0-rc0/java/vector/src/main/java/org/apache/arrow/vector/VectorSchemaRoot.java#L341) when slicing a VSR containing a NullVector or ZeroVector. Details in apache#44344

Added unit test that would trigger an UnsupportedOperationException on the legacy path.
* GitHub Issue: apache#44344

Authored-by: Maksim Yegorov <59841139+maksimyego-db@users.noreply.github.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
@github-actions
Copy link

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants