Skip to content

[Parquet] Add benchmarks for reading struct arrays from parquet #9209

Closed

Description

@jhorstmann

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

The arrow_reader benchmarks currently do not cover any struct arrays. This is an interesting gap, since there is an optimization for reading definition levels with a max level of 1, which would no longer be triggered when a column is wrapped in an optional struct. The overhead of that fallback behavior would be very interesting to analyze.

Describe the solution you'd like

Add some simple benchmarks for structs. A single field in that struct should be enough and allow comparing the time for reading a primitive column vs. that column wrapped in a required or optional struct. No need to cover multiple encodings for the leaf data, since that should not make a difference for the struct.

Describe alternatives you've considered

Additional context

I would also be very interested in how commonly struct arrays are used in parquet. Most usages seem to involve only flat data, but since parquet allows arbitrarily complex structured data, there must be some more users of this.

Activity

  1. added
    enhancement
    on Jan 17, 2026
  2. jhorstmann commented on Jan 17, 2026

    @jhorstmann
    ContributorAuthor

    @alamb fyi, there might be some more parquet optimizations incoming ;)

  3. added a commit that references this issue on Jan 18, 2026
    9c6065c
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions