maksimyego-db commented on issue #44344:
URL: https://github.com/apache/arrow/issues/44344#issuecomment-2402805513

   Not to lose sight of the original issue: We [should be able to 
slice](https://arrow.apache.org/docs/java/vector_schema_root.html#vectorschemaroot)
 a VectorSchemaRoot containing `NullVector`s, like we do for any other 
ValueVector types. That `NullVector` does not require a BufferAllocator 
suggests to me this attribute is optional for any public methods operating on 
NullVector.
   
   Another alternative is to case match on NullVector in 
https://github.com/apache/arrow/blob/release-17.0.0-rc2/java/vector/src/main/java/org/apache/arrow/vector/VectorSchemaRoot.java#L340-L341
 but that seems like a workaround where conceivably any public ValueVector APIs 
that require the allocator parameter should work on NullVectors.


-- 
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