Refactor arrow-select tests with rstest

オープン
#12,412 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Phoenix500526 がすでに取り組んでいます。

2026年11月23日 から。

評価

この issue はまだ評価されていません。

説明

Is your feature request related to a problem or challenge?

Selected arrow-select tests repeat setup and assertions or hide independent parameter combinations in nested loops. This makes individual scenarios harder to read and failures harder to identify.

This issue tracks the arrow-select portion of #12328.

Describe the solution you'd like

Use named rstest cases and independent parameters where they improve readability:

  • Parameterize selected filter, take, zip, and window tests while retaining their parameter combinations and assertions.
  • Consolidate repeated coalesce, interleave, merge, nullif, and Union extraction scenarios, retaining input layouts, null handling, slicing, expected results, and error checks.
  • Keep stateful sequences, including consecutive BufferSource requests, together within each case.
  • For randomized tests split into independent cases, derive reproducible seeds from the parameters. Preserve the parameter matrix and checks; the generated samples need not be byte-for-byte identical to the previous shared RNG sequence.
  • Retain existing Miri exclusions and avoid expanding combinations without a coverage reason.

The scope is tests, test helpers, and development dependencies only. No production behavior or public API changes are intended.

Describe alternatives you've considered

Keep tests unchanged where parameterization would add complexity or obscure sequential behavior. This is not a requirement to convert every test in the crate.

Additional context

Part of #12328. Selected refactors have been prepared locally. The current branch passes cargo test -p arrow-select --all-features, including 1323 unit tests and 20 documentation tests, and crate-level Clippy checks.

Willingness to contribute

I plan to contribute to this feature independently.

主要言語
Rust
スター
3.7k
フォーク
1.5k
平均マージ
2日 16時間
マージ済み PR(30日)
183

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/arrow-rs のほかの issue

apache/arrow-rs の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。