Skip to content

[Variant] Improve API for iterating over values of a VariantList #7685

Closed

Description

@alamb

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 #7666 (comment)

Activity

  1. added
    parquet
    on Jun 20, 2025
  2. alamb commented on Jun 20, 2025

    @alamb
    ContributorAuthor

    label_issue.py automatically added labels {'parquet'} from #7704

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    parquet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions