Repository navigation
refactor: parameterize arrow-json tests - #12358
Closed
Phoenix500526 wants to merge 1 commit into
Closed
Phoenix500526 wants to merge 1 commit into
Phoenix500526 wants to merge 1 commit into
Conversation
Make individual scenarios easier to identify while preserving existing coverage and reducing duplicated test logic. Refs apache#12328
Phoenix500526
force-pushed
the
issue/12328-III
branch
from
November 21, 2026 00:24
c8f54c7 to
7e92bf7
Compare
This was referenced Nov 21, 2026
Contributor
Author
|
I'll temporarily close the other rstest PRs and reopen them in smaller batches after #12357 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-json).Rationale for this change
Several arrow-json tests repeat setup and assertions or group independent scenarios in a single test. Named rstest cases make failures easier to identify and keep shared test logic in one place.
What changes are included in this PR?
Are these changes tested?
The refactored tests preserve the original inputs, parameter combinations, and expected results, including full error messages, Decimal precision and scale differences, and default implicit-null configuration. Truncated-record cases also check that the decoder retains a partial row and its buffered row count.
All 187 arrow-json unit tests and 19 documentation tests pass with all features enabled. Clippy, formatting, and spelling checks also pass.
Are there any significant user-facing changes?
No. This changes tests and development dependencies only.
AI usage disclosure
I reviewed the proposed refactors group by group and selected the scope of this PR. I directed the work to preserve existing coverage and to separate tests of different behaviors, including decoder state preservation and invalid-input handling, rather than mechanically combine all scenarios.
Codex helped identify duplicated tests, draft and revise the implementation, compare coverage with the original tests, run validation commands, and prepare the PR description.