Refactor arrow-ord tests with rstest

Aperta
#12,434 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Phoenix500526 ci sta già lavorando.

Dal 24/11/2026.

  • #12435 di @Phoenix500526 — chiusa senza merge
  • #12436 di @Phoenix500526 — chiusa senza merge

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Is your feature request related to a problem or challenge?

Several arrow-ord tests repeat setup and assertions across data types, comparison operators, and sorting options. Named parameterized cases can make failures easier to identify and individual scenarios easier to run while reducing duplicated test bodies.

Describe the solution you'd like

Use rstest for selected sorting, comparison, and ranking tests. Preserve the existing inputs, expected results, scalar/array distinctions, dictionary key types, Decimal precision and scale, null handling, limit boundaries, and Miri exclusions. Keep shared random-data generation and tests that would not benefit from parameterization unchanged.

Split the work into two independently buildable PRs:

  • #12435 — Sorting tests in arrow-ord/src/sort.rs.
  • #12436 — Comparison and ranking tests in arrow-ord/src/cmp.rs, comparison.rs, and rank.rs.

Both PRs include the same small rstest dev-dependency commit. Close this tracking issue after both PRs have merged, regardless of merge order; neither PR should individually close it.

Describe alternatives you've considered

Keep existing helpers and test bodies where parameterization would add complexity without improving readability.

Additional context

Part of #12328. The implementation has been reviewed and tested locally and is submitted in the two draft PRs linked above. The pre-existing missing millisecond Timestamp test coverage is outside this refactor and will be handled separately.

Willingness to contribute

I plan to contribute to this feature independently.

Lingua principale
Rust
Stelle
3.7k
Fork
1.5k
Merge medio
2g 16h
PR unite (30g)
183

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/arrow-rs

Tutte le issue di apache/arrow-rs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.