jhorstmann commented on pull request #813:
URL: https://github.com/apache/arrow-rs/pull/813#issuecomment-937630842


   Validating primitive or boolean arrays is probably cheap, so most kernels 
(arithmetic or comparisons for example) could always use the safe version. The 
main usecase for the unsafe variant is probably the `cast` kernels, when there 
is a `match` directly before that verifies that the from/to layouts are equal. 
There are not that many kernels in this repo that return List or Dictionary 
arrays and which would slow down because of the validation, but in our query 
engine we use those data types a lot.
   
   Interestingly `ArrayData::slice` already bypasses any validation since it 
creates the `ArrayData` struct directly.


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