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

   - Part of https://github.com/apache/arrow-rs/issues/6736
   
   - Related to https://github.com/apache/arrow-rs/issues/7684
   
   
   At the moment iterating over the fields produces an iterator of `Result` 
which is annoying to deal with and doesn't play very well with most other Rust 
iterator combinators (like map, for example)
   
   This is a tracking issue for a conversation @scovich and I had about how to 
improve iterating over a VariantList / fields of a VariantObject
   
   ----
   
   Something I noticed here was that it would be really nice if:
   1. This returned an Iterator rather than a `Result`
   2. We could implement `iter()` and `IntoIterator` for VariantList 
   
   That would  make using it more ergonomic, though it would require either 
panic'ing or else validating the offsets on construction 🤔
   
   _Originally posted by @alamb in 
https://github.com/apache/arrow-rs/pull/7666#discussion_r2150611864_
               


-- 
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-unsubscr...@arrow.apache.org.apache.org

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

Reply via email to