Refactor arrow-cmp tests with rstest

Đang mở
#12,432 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Phoenix500526 đang làm issue này rồi.

Từ ngày 24/11/2026.

  • #12433 của @Phoenix500526 — đã đóng, không merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Is your feature request related to a problem or challenge?

Several arrow-cmp tests repeat comparator setup and assertions across data types or sorting options. Parameterizing these scenarios would make individual cases easier to identify and run while reducing duplicated test bodies.

Describe the solution you'd like

Use rstest for selected Decimal, dictionary, nested array, and Dense Union comparison tests. Keep the existing inputs, precision and scale settings, sorting options, comparison indices, expected results, and error checks. Keep short or behaviorally distinct tests separate instead of converting every test.

Describe alternatives you've considered

Keep the existing tests and generic helpers. These remain appropriate where parameterization would add complexity without improving readability.

Additional context

Part of #12328. The implementation has been prepared locally and will be submitted as a draft PR.

Willingness to contribute

I plan to contribute to this feature independently.

Ngôn ngữ chính
Rust
Star
3.7k
Fork
1.5k
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
183

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/arrow-rs

Tất cả issue của apache/arrow-rs

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.