Repository navigation
refactor: parameterize CSV and Avro tests - #12361
Closed
Phoenix500526 wants to merge 2 commits into
Closed
Phoenix500526 wants to merge 2 commits into
Phoenix500526 wants to merge 2 commits into
Conversation
Phoenix500526
force-pushed
the
issue/12328-IV
branch
from
November 20, 2026 14:16
63e42d0 to
5d7d3ec
Compare
This was referenced Nov 21, 2026
Make individual scenarios easier to identify while preserving existing coverage and reducing duplicated test logic. Refs apache#12328
Make individual scenarios easier to identify while preserving existing coverage and reducing duplicated test logic. Refs apache#12328
Phoenix500526
force-pushed
the
issue/12328-IV
branch
from
November 21, 2026 11:51
5d7d3ec to
72432a0
Compare
Contributor
Author
|
Closed temporarily and reopen after #12358 is merged. |
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?
Part of #12328.
arrow-csv).arrow-avro).Rationale for this change
Several CSV and Avro tests repeat setup and assertions or bury independent scenarios in nested loops. Named
rstestcases make failures easier to identify and keep related inputs and expectations together.What changes are included in this PR?
rstestas a development dependency to both crates.Are these changes tested?
The refactoring retains the existing behavioral scenarios, including CSV buffer-size combinations and default writer configuration, Avro feature-dependent decimal and duration behavior, Id64 values beyond 32 bits, and empty-schema batch boundaries. Assertions continue to check values, types, errors, and output formats as appropriate.
Local validation passed for all 127 CSV unit tests and 14 documentation tests, and for 421 Avro unit tests with default features and 493 with all features. Formatting, spelling, and relevant Clippy checks also passed.
Are there any significant user-facing changes?
No. These changes affect tests and development dependencies only.
AI usage disclosure
I worked through the CSV and Avro test groups with Codex, selected the refactors, and wrote or revised parts of the tests myself. I questioned case naming, comments, and input choices, including the distinction between 32-bit and 64-bit fingerprint IDs and the timestamp inputs shared by local and timezone-aware cases. I requested reviews and validation as the changes progressed.
Codex helped identify candidates, draft and revise parts of the implementation, cross-check coverage, run validation commands, and prepare the PR description.