Skip to content

Add new parquet tests based on updated variant/json files - #10785

Merged
Jefffrey merged 5 commits into
apache:mainfrom
sdf-jkl:update-parquet-testing
Sep 2, 2026
Merged

Add new parquet tests based on updated variant/json files#10785
Jefffrey merged 5 commits into
apache:mainfrom
sdf-jkl:update-parquet-testing

Conversation

@sdf-jkl

@sdf-jkl sdf-jkl commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

The updated parquet-testing revision included:

#10786 made these fixtures available to Arrow Rust, but did not exercise the JSON, BSON, or malformed Variant files.

The same revision also added an extended ALP fixture. That fixture is covered by the ALP encoder/decoder work in #9372, where the required decoding support exists.

What changes are included in this PR?

  • Read the JSON logical-type fixture and verify all decoded string values.
  • Read the BSON logical-type fixture and verify all decoded binary values.
  • Validate all 14 files under bad_data/variants, including the one valid duplicate-offset case and 13 malformed cases.

The four shredded Variant cases renamed as invalid by the same parquet-testing update are already exercised by the existing Variant integration harness.

Are these changes tested?

Yes. The Parquet and Variant integration tests pass locally, along with formatting and clippy checks. The PR's CI checks are also green.

Are there any user-facing changes?

No. This PR only adds integration-test coverage for existing parquet-testing fixtures.

AI usage

This PR was prepared with OpenAI Codex and reviewed by a human. The integration tests, formatting, and clippy checks described above were run against the final branch, and the GitHub CI checks passed.

@github-actions github-actions Bot added parquet Changes to the parquet crate parquet-variant parquet-variant* crates labels Aug 21, 2026
@sdf-jkl sdf-jkl changed the title Update parquet-testing test data [parquet] update parquet-testing dep Aug 21, 2026
@alamb

alamb commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

maybe we can make a separate PR to just update parquet-testing (to get the latest files)?

@sdf-jkl

sdf-jkl commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

I'll do just that and file an issue to track adding the tests 👍

…-parquet-testing

# Conflicts:
#	parquet-variant/src/variant/metadata.rs
#	parquet-variant/src/variant/object.rs
@github-actions github-actions Bot removed the parquet-variant parquet-variant* crates label Sep 2, 2026
@sdf-jkl
sdf-jkl marked this pull request as ready for review September 2, 2026 02:27
@sdf-jkl

sdf-jkl commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

@Jefffrey @Rich-T-kid PTAL

@Jefffrey Jefffrey added the development-process Related to development process of arrow-rs label Sep 2, 2026
@Jefffrey Jefffrey changed the title [parquet] update parquet-testing dep Add new parquet tests based on updated variant/json files Sep 2, 2026
@sdf-jkl

sdf-jkl commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

🚀

@Jefffrey
Jefffrey merged commit 2a1ba41 into apache:main Sep 2, 2026
35 checks passed
@Jefffrey

Jefffrey commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

thanks @sdf-jkl

@sdf-jkl
sdf-jkl deleted the update-parquet-testing branch September 2, 2026 02:51
@Rich-T-kid

Copy link
Copy Markdown
Contributor

late to the party but nice PR @sdf-jkl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Related to development process of arrow-rs parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants