tyrelr opened a new pull request #9440:
URL: https://github.com/apache/arrow/pull/9440


   A few of the arrow kernels rely on macros to iterate over values using a 
common `.value()` function, but:
   * this function is safe on some array types (string, binary), but unsafe on 
other array types (primitive - although it is not currently marked as such)
   * this forces iteration by index, which requires unsafe code to guarantee 
bounds checks are avoided (which can be dangerous for multi-array operations)
   
   This PR is an experiment with a TypedArray trait, which provides access to 
array values (along with associated types describing those values).  This will 
NOT remove the need for downcasting, as the associated types aren't object 
safe.  But it should be sufficient to allow simple processing of values from 
multiple array types using a generic function instead of a macro.
   


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

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


Reply via email to