Phoenix500526 opened a new pull request, #12414:
URL: https://github.com/apache/arrow-rs/pull/12414

   # Which issue does this PR close?
   
   Part of #12412 and #12328. This is Part I of two independently based PRs; 
neither part alone completes #12412.
   
   # Rationale for this change
   
   Repeated setup and nested parameter loops make individual test scenarios 
harder to read and run in isolation. This PR replaces selected groups with 
named `rstest` cases while preserving their parameter combinations and 
assertions. The work is split into two PRs of roughly 600 added lines to keep 
review manageable.
   
   # What changes are included in this PR?
   
   - Add `rstest` as an `arrow-select` development dependency.
   - Parameterize concat dictionary-capacity, incompatible-type, string-slice, 
and RunArray scenarios.
   - Parameterize filter null selection, bitmap filtering, and slice iteration.
   - Consolidate take cases for primitive types, fixed-size binary widths, 
record-batch nullability, and out-of-bounds indices.
   - Parameterize shift cases and the four scalar/array zip scenarios.
   
   The bitmap filter test retains all 440 parameter combinations, reuses each 
input for both predicate configurations, and keeps the direct implementation 
and dispatch checks. Each independent case derives a reproducible seed from its 
parameters; the random samples differ from the former shared RNG stream. 
Existing Miri exclusions are retained.
   
   Both parts target `main` and include the same development dependency so 
either can be tested independently. Part II covers coalescing, interleave, 
merge, nullif, Union extraction, and the remaining selected scalar zip tests.
   
   # Are these changes tested?
   
   Existing test inputs and expected results are retained, except for the 
explicitly described change in random samples. The complete `arrow-select` 
suite with all features, including documentation tests, passes on this branch. 
Crate-level Clippy and formatting checks also pass.
   
   # Are there any significant user-facing changes?
   
   No. This changes tests, test helpers, and development dependencies only.
   
   # AI usage disclosure
   
   I selected and discussed the test groups with Codex, reviewed the proposed 
cases and diffs incrementally, and directed changes to naming, grouping, 
comments, and coverage. I also split the work into these two PRs to keep each 
review manageable. Codex helped implement the refactors, compare original 
inputs and assertions, inspect random-seed behavior, run local checks, and 
draft the PR descriptions. The scope and design decisions were made through 
this iterative review process.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to