You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/28 18:03:46 UTC

[GitHub] [arrow-rs] viirya commented on issue #1625: UnionArray::is_null incorrect

viirya commented on issue #1625:
URL: https://github.com/apache/arrow-rs/issues/1625#issuecomment-1112508202

   Java:
   https://github.com/apache/arrow/blob/b76caf4964dc96d20b72b21291052f459fa9c68a/java/vector/src/main/codegen/templates/UnionVector.java#L697-L704
   
   It mentions:
   
   > IMPORTANT: Union types always return non null as there is no validity buffer.
   To check validity correctly you must check the underlying vector.
   
   C++:
   Default `IsNull`: https://github.com/apache/arrow/blob/c70426f73326b3852d1bd7c31d98be4743f3fcba/cpp/src/arrow/array/array_base.h#L57-L62
   
   I don't see UnionArray has overridden implementation.
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org