Skip to content

[Variant] Add benchmarks for typed unshredded variant_get #10988

Closed

Description

@sdf-jkl

Is your feature request related to a problem or challenge?

parquet-variant-compute/benches/variant_kernels.rs currently benchmarks:

  • Untyped extraction from an unshredded primitive Variant array
  • Typed extraction from a perfectly shredded UTF-8 array
  • Typed Int32 extraction through a path in an unshredded object

It does not benchmark typed conversion of unshredded Variant values. Therefore, the benchmark suite cannot evaluate performance changes to these conversion paths or detect regressions introduced while aligning variant_get behavior with the Arrow cast kernels.

Describe the solution you'd like

Add representative benchmarks for typed, unshredded variant_get.

The benchmarks should be organized around materially different execution paths and input shapes rather than creating a cross-product of Variant types and Arrow destination types.

Initial coverage should include the UTF-8 and Binary destination paths, with representative inputs that distinguish:

  • Values that can be extracted directly
  • Values that require conversion or formatting
  • Nested values such as lists and objects

Inputs should be deterministic and large enough to produce stable measurements. Benchmark throughput should be reported alongside iteration time.

Add the benchmarks in a benchmark-only PR so they can be merged and used to compare the existing and proposed implementations.

Describe alternatives you've considered

Additional context

The existing benchmark suite contains useful controls for untyped extraction, perfect shredding, and path traversal. The new cases should complement those controls rather than duplicate them.

This came up while reviewing #10114.

Activity

  1. added a commit that references this issue on Sep 21, 2026
    aee9535
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions