Phoenix500526 opened a new pull request, #12415: URL: https://github.com/apache/arrow-rs/pull/12415
# Which issue does this PR close? Part of #12412 and #12328. This is Part II of two independently based PRs; neither part alone completes #12412. # Rationale for this change Repeated setup and assertions obscure the differences between test scenarios. This PR expresses selected scenarios as named `rstest` cases and separates independent parameter combinations. 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. - Consolidate coalescing, inline byte-view, schema-mismatch, and `BufferSource` tests. Each `BufferSource` case retains its full sequence of requests on one instance. - Parameterize interleave, scalar/array merge, nullif offset, and Sparse/Dense Union extraction scenarios while preserving their original inputs and checks. - Consolidate scalar zip cases for primitive, string, binary, and view arrays. - Parameterize the primitive/scalar zip comparison by data type, length, and mask shape, with named mask shapes and shared generation/assertion helpers. The randomized zip test retains 280 outer parameter combinations and 2,240 comparisons against the general implementation. Each case derives a reproducible seed from its parameters, so its samples are independent of execution order. The samples differ from the previous shared RNG stream; this does not claim byte-for-byte retention of that stream. Existing Miri exclusions are retained. Both parts target `main` and include the same development dependency so either can be tested independently. Part I (#12414) covers concat, filter, take, shift, and the four scalar/array zip scenarios. # Are these changes tested? The original deterministic inputs, expected results, and stateful sequences are retained. 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. In particular, I examined the zip test's purpose and random-seed behavior, requested coverage checks, and rejected an earlier decomposition that made coverage harder to track. I also split the work into these two PRs. Codex helped implement the agreed refactors, compare inputs and assertions, run local checks, and draft the PR descriptions. During independent branch validation, Codex also restored a missing `rstest` import caused by the split. -- 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]
