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 2021/04/26 12:47:16 UTC

[GitHub] [arrow-rs] alamb opened a new issue #179: [Rust][Experiment][WIP] Experiment with a TypedArray trait

alamb opened a new issue #179:
URL: https://github.com/apache/arrow-rs/issues/179


   *Note*: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-11546
   
   A few of the arrow kernels rely on macros to iterate over values using a common ".value()" function, but:
   * this is unsafe on some array types (string, binary), but unsafe on other array types (primitive)
   * this forces iteration by index, which does not always optimize away bounds-checking (at least in the binary case)
   
   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:
users@infra.apache.org