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/06/13 07:50:44 UTC

[GitHub] [arrow-rs] jhorstmann opened a new issue, #1856: PrimitiveArray::from_iter should omit validity buffer if all values are valid

jhorstmann opened a new issue, #1856:
URL: https://github.com/apache/arrow-rs/issues/1856

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   
   `PrimitiveArray::from_iter` currently always initializes and returns a null_buffer, even when all values are valid.
   
   **Describe the solution you'd like**
   
   Before constructing the `ArrayData` we could check the count of ones in the validity buffer and mapping it to None if all values are valid. This should not add any overhead as the number of nulls is counted anyway by the `ArrayData` constructor.
   


-- 
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.apache.org

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


[GitHub] [arrow-rs] nevi-me closed issue #1856: PrimitiveArray::from_iter should omit validity buffer if all values are valid

Posted by GitBox <gi...@apache.org>.
nevi-me closed issue #1856: PrimitiveArray::from_iter should omit validity buffer if all values are valid
URL: https://github.com/apache/arrow-rs/issues/1856


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