Repository navigation
bench(parquet): add wide nested struct cases to arrow_writer - #12561
Open
nikolaobradovic-db wants to merge 1 commit into
Open
nikolaobradovic-db wants to merge 1 commit into
nikolaobradovic-db wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Rationale for this change
The existing
arrow_writerbench cases have few nested nodes and large batches. Thus, they do notshow the cost of building the levels for wide and deep struct columns that are written in small
batches. #12558 changes this code. These cases were part of #12558, and a review asked to move
them into their own PR. With these cases on main, the bench runner can compare main and #12558 on
them. #12558 drops its bench commit when this PR is merged.
What changes are included in this PR?
Two new
arrow_writerbench groups with three cases (filter:^wide_):wide_nested_struct_small_batches/default: 64 Int32 leaves under 2 levels of structs, 65,536rows in batches of 64 rows.
wide_deep_nested_struct/16_rowsand/128_rows: a binary tree of 10 struct levels with 1024leaves (Int64, Utf8, Boolean and Int32 in turn), 2048 rows in batches of 16 and of 128 rows.
The input of each case is built on first use, so a filter that skips the case does not build it.
Are these changes tested?
This PR adds bench cases only, so it has no new tests. I ran all three cases in Criterion's test
mode.
Are there any significant user-facing changes?
No.
AI usage disclosure
An AI coding assistant helped to write the bench cases and this description. I reviewed all of
it and ran it.