Repository navigation
test(arrow-cmp): parameterize comparison tests - #12433
Closed
Phoenix500526 wants to merge 1 commit into
Closed
Phoenix500526 wants to merge 1 commit into
Phoenix500526 wants to merge 1 commit into
Conversation
Reduce duplicated comparison checks while preserving the existing inputs, sort configurations, and expected results. Refs apache#12328
Contributor
Author
|
Closed temporarily |
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?
Closes #12432.
Part of #12328.
Rationale for this change
Repeated comparator setup and assertions make the supported type and sorting combinations harder to follow. Named
rstestcases expose those combinations individually and share the common test bodies.What changes are included in this PR?
rstestas anarrow-cmpdevelopment dependency with default features disabled.Are these changes tested?
The refactoring preserves the original inputs, sort configurations, comparison indices, expected orderings, and error checks. Existing Miri exclusions are unchanged. The all-features
arrow-cmpsuite passes locally with 98 tests; Clippy and formatting checks also pass.Are there any significant user-facing changes?
No. Production code and public APIs are unchanged.
AI usage disclosure
I worked through the candidate test groups individually with Codex, chose which refactors to include, and reviewed the proposed code. I discussed the generic type constraints and type markers, requested that all expected comparison results be explicit in the cases, and reviewed coverage and validation results before approving the commit.
Codex helped identify candidates, implement and revise the parameterized tests, compare inputs and assertions with the originals, run validation, and draft this issue and PR description.