Phoenix500526 opened a new pull request, #12436: URL: https://github.com/apache/arrow-rs/pull/12436
# Which issue does this PR close? Part of #12434 and #12328. This is the comparison and ranking portion of the `arrow-ord` refactor; the sorting changes are in #12435. Neither PR closes #12434 on its own. # Rationale for this change Comparison and ranking tests repeat setup and assertions for operators, array types, and sort options. Named `rstest` cases make each scenario easier to identify and run while sharing the repeated test body. # What changes are included in this PR? - Add `rstest` as a dev dependency, using the same small dependency commit as the sorting PR. - Parameterize selected Boolean, numeric, Binary, string, dictionary, Decimal, NaN, and run-end-encoded comparisons in `comparison.rs` and `cmp.rs`. - Parameterize ranking options and byte-array types in `rank.rs`, keeping nonzero null-payload checks separate and retaining inline-view buffer assertions. Preserve scalar/array distinctions, dictionary key types, both comparison directions where originally tested, exact expected results, and Miri exclusions. The pre-existing missing millisecond Timestamp case is left for a separate change. # Are these changes tested? Before/after tracing matched all 531 comparison calls in `comparison.rs`, including operators, scalar flags, types, null bitmaps, and underlying buffer data. Ranking and REE scenarios were checked against the original assertions. The `arrow-ord` all-features unit and documentation tests pass on this branch independently. Miri ignore propagation was checked in macro-expanded tests; Miri itself was not run. # Are there any significant user-facing changes? No. Production code and public APIs are unchanged. # AI usage disclosure I worked through the candidate tests with Codex in an iterative, test-by-test discussion. I selected the groups to refactor, reviewed the proposed parameterization and diffs, discussed generic types and coverage, and explicitly kept the Timestamp coverage gap separate. I also chose the commit and PR split. Codex assisted with implementation, before/after coverage checks, Miri attribute checks, and local validation. I reviewed scope and design decisions throughout the 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]
