Refactor arrow-string tests with rstest

Abierto
#12,396 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Phoenix500526 ya está trabajando en esto.

Desde el 22/11/2026.

  • #12400 de @Phoenix500526 — cerrado sin fusionar

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Is your feature request related to a problem or challenge?

Selected arrow-string tests repeat setup and assertions or hide independent parameter combinations in nested loops. This issue tracks the arrow-string portion of #12328.

Describe the solution you'd like

Use rstest for the following selected groups:

  • Parameterize the two extreme substring start/length tests, preserving all combinations and the separate checks with explicit expected values.
  • Consolidate null propagation tests for LIKE functions across Utf8/Utf8View, pattern paths, and scalar/array combinations. Preserve the existing Miri exclusions.
  • Consolidate the repeated string length and bit-length tests across Utf8, LargeUtf8, and Utf8View while retaining the original data tables and Int32/Int64 result checks.
  • Split dynamic concatenation tests into ordinary variable-width arrays, View arrays, and fixed-size binary arrays; parameterize the first two groups while preserving the View-specific long-value and 12-byte-boundary cases.

Preserve existing inputs, expected results, and behavioral coverage. Keep data-generation and stateful loops where they remain clearer. Production behavior and public APIs are outside this scope.

Describe alternatives you've considered

Keep tests unchanged where parameterization does not improve readability. The separately identified bit_length_null_utf8view naming/coverage mismatch will be handled independently.

Additional context

Part of #12328. Implementation and validation are in progress; no PR yet.

Willingness to contribute

I plan to contribute to this feature independently.

Lenguaje dominante
Rust
Estrellas
3.7k
Forks
1.5k
Merge medio
2 d 16 h
PR fusionados (30 d)
183

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/arrow-rs

Todos los issues de apache/arrow-rs

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.