myegorov opened a new pull request, #44631:
URL: https://github.com/apache/arrow/pull/44631

   ### Rationale for this change
   
   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 
https://github.com/apache/arrow/issues/44344
   
   ### Are these changes tested?
   
   Added unit test that would trigger an UnsupportedOperationException on the 
legacy path.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to