Skip to content

test(parquet): move scalar roundtrip tests - #11128

Open
Phoenix500526 wants to merge 4 commits into
apache:mainfrom
Phoenix500526:consolidate-writer-roundtrip
Open

Phoenix500526 wants to merge 4 commits into
apache:mainfrom
Phoenix500526:consolidate-writer-roundtrip

Conversation

@Phoenix500526

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Part of #10540.

Rationale for this change

Continue consolidating Arrow/Parquet roundtrip coverage in the writer integration suite so related end-to-end tests are easier to find and extend. Sharing the existing harness allows the tests to move in small batches while the remaining unit tests keep using the same validation logic.

What changes are included in this PR?

  • Move 31 tests from the writer's unit test module into parquet/tests/arrow_writer/roundtrip.rs: 10 numeric, 14 temporal, and 7 binary/string tests.
  • Extract the existing roundtrip helpers into a test-only module shared by unit and integration tests. No public library API or feature is added.
  • Preserve the test bodies, assertions, encoding/dictionary/writer-version/row-group combinations, and Miri annotations. The integration module temporarily expects unused helpers because only part of the suite has moved.

Are these changes tested?

  • cargo test --locked --offline -p parquet --lib arrow::arrow_writer::tests::: 106 passed.
  • cargo test --locked --offline -p parquet --test arrow_writer: 58 passed.
  • cargo test --locked --offline -p parquet --no-default-features --features arrow --test arrow_writer: 58 passed.
  • cargo fmt --all --check
  • cargo clippy --locked --offline -p parquet --all-targets --all-features -- -D warnings

The affected writer suites still contain 164 tests in total: 137 + 27 before migration, 106 + 58 after migration.

Are there any user-facing changes?

No. This PR reorganizes tests only.

@github-actions github-actions Bot added the parquet Changes to the parquet crate label Sep 18, 2026
@Phoenix500526
Phoenix500526 force-pushed the consolidate-writer-roundtrip branch from ad84c11 to c63049e Compare September 18, 2026 08:59
Share the existing roundtrip harness so writer tests can move to
integration tests in small batches without duplicating coverage.

Refs apache#10540
Keep integer and float roundtrip coverage with the integration
suite so related end-to-end tests are easier to find and extend.

Refs apache#10540
Keep temporal roundtrip coverage with the writer integration
suite so related tests are easier to find and extend.

Refs apache#10540
Keep binary and string roundtrip coverage with the writer integration
suite so related tests are easier to find and extend.

Refs apache#10540
@Phoenix500526
Phoenix500526 force-pushed the consolidate-writer-roundtrip branch from c63049e to 5b60dea Compare September 19, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant