Skip to content

Fix unshredded Variant field extraction benchmark - #11253

Merged
alamb merged 1 commit into
apache:mainfrom
sdf-jkl:codex/fix-variant-object-path-benchmark
Sep 28, 2026
Merged

alamb merged 1 commit into
apache:mainfrom
sdf-jkl:codex/fix-variant-object-path-benchmark

Conversation

@sdf-jkl

@sdf-jkl sdf-jkl commented Sep 28, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Follow-up to #10357; corrects the benchmark used by #10358.

Rationale for this change

The unshredded object fixture has a literal field named attr.140, but VariantPath::try_from("attr.140") parses it as two nested fields (attr then 140). Since the fixture has no attr field, the benchmark returns NULL for every row instead of extracting the intended value.

What changes are included in this PR?

Construct the path with VariantPathElement::field("attr.140") and assert that every result is Some(140) before entering the timed loop.

Are these changes tested?

  • cargo bench --offline -p parquet-variant-compute --bench variant_kernels -- variant_get_unshredded_object_path_262k_rows --test
  • cargo fmt --all -- --check
  • git diff --check

Are there any user-facing changes?

No. This only corrects the benchmark workload; previous timings for this benchmark measured missing-path handling.

@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label Sep 28, 2026
@sdf-jkl
sdf-jkl marked this pull request as ready for review September 28, 2026 14:19
@sdf-jkl

sdf-jkl commented Sep 28, 2026

Copy link
Copy Markdown
Member Author

@adriangb @Jefffrey PTAL

@alamb
alamb merged commit 76829d5 into apache:main Sep 28, 2026
17 checks passed
@alamb

alamb commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Thanks @sdf-jkl

@sdf-jkl
sdf-jkl deleted the codex/fix-variant-object-path-benchmark branch September 28, 2026 15:18
@sdf-jkl

sdf-jkl commented Sep 28, 2026

Copy link
Copy Markdown
Member Author

Thanks @alamb

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

Labels

bug Squash those bugs parquet-variant parquet-variant* crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants