Skip to content

[Variant] Add nested object and array interoperability tests - #10637

Merged
alamb merged 2 commits into
apache:mainfrom
cakeni:test/variant-nested-interop
Aug 19, 2026
Merged

alamb merged 2 commits into
apache:mainfrom
cakeni:test/variant-nested-interop

Conversation

@cakeni

@cakeni cakeni commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

The Variant interoperability suite covers primitive objects and arrays but does not exercise the nested object and array fixtures. This leaves nested VariantBuilder encoding without equivalent fixture-based coverage.

What changes are included in this PR?

  • Build the object_nested fixture with nested object builders and compare it with the decoded interoperability fixture.
  • Build the array_nested fixture with nested object/list builders, including null values, and compare it with the decoded fixture.

Are these changes tested?

Yes. Both new tests pass against apache/parquet-testing commit 73545118:

  • cargo test -p parquet-variant --test variant_interop variant_object_nested_builder
  • cargo test -p parquet-variant --test variant_interop variant_array_nested_builder

Are there any user-facing changes?

No. This PR adds test coverage only.

AI assistance

OpenAI Codex assisted with inspecting the existing test coverage and drafting the additional interoperability tests. I reviewed the final test cases.

@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label Aug 11, 2026
@cakeni
cakeni marked this pull request as ready for review August 11, 2026 13:30

@sdf-jkl sdf-jkl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cakeni LGTM.

cc @Jefffrey @klion26

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cakeni and @sdf-jkl

@alamb
alamb merged commit 6bb5e2b into apache:main Aug 19, 2026
19 checks passed
Rich-T-kid pushed a commit to Rich-T-kid/arrow-rs that referenced this pull request Aug 26, 2026
…10637)

# Which issue does this PR close?

- Closes apache#10617.

# Rationale for this change

The Variant interoperability suite covers primitive objects and arrays
but does not exercise the nested object and array fixtures. This leaves
nested `VariantBuilder` encoding without equivalent fixture-based
coverage.

# What changes are included in this PR?

- Build the `object_nested` fixture with nested object builders and
compare it with the decoded interoperability fixture.
- Build the `array_nested` fixture with nested object/list builders,
including null values, and compare it with the decoded fixture.

# Are these changes tested?

Yes. Both new tests pass against `apache/parquet-testing` commit
`73545118`:

- `cargo test -p parquet-variant --test variant_interop
variant_object_nested_builder`
- `cargo test -p parquet-variant --test variant_interop
variant_array_nested_builder`

# Are there any user-facing changes?

No. This PR adds test coverage only.


## AI assistance

OpenAI Codex assisted with inspecting the existing test coverage and
drafting the additional interoperability tests. I reviewed the final
test cases.

Co-authored-by: Jeffrey Vo <[email protected]>
Rich-T-kid pushed a commit to Rich-T-kid/arrow-rs that referenced this pull request Aug 28, 2026
…10637)

# Which issue does this PR close?

- Closes apache#10617.

# Rationale for this change

The Variant interoperability suite covers primitive objects and arrays
but does not exercise the nested object and array fixtures. This leaves
nested `VariantBuilder` encoding without equivalent fixture-based
coverage.

# What changes are included in this PR?

- Build the `object_nested` fixture with nested object builders and
compare it with the decoded interoperability fixture.
- Build the `array_nested` fixture with nested object/list builders,
including null values, and compare it with the decoded fixture.

# Are these changes tested?

Yes. Both new tests pass against `apache/parquet-testing` commit
`73545118`:

- `cargo test -p parquet-variant --test variant_interop
variant_object_nested_builder`
- `cargo test -p parquet-variant --test variant_interop
variant_array_nested_builder`

# Are there any user-facing changes?

No. This PR adds test coverage only.


## AI assistance

OpenAI Codex assisted with inspecting the existing test coverage and
drafting the additional interoperability tests. I reviewed the final
test cases.

Co-authored-by: Jeffrey Vo <[email protected]>
Rich-T-kid pushed a commit to Rich-T-kid/arrow-rs that referenced this pull request Sep 2, 2026
…10637)

# Which issue does this PR close?

- Closes apache#10617.

# Rationale for this change

The Variant interoperability suite covers primitive objects and arrays
but does not exercise the nested object and array fixtures. This leaves
nested `VariantBuilder` encoding without equivalent fixture-based
coverage.

# What changes are included in this PR?

- Build the `object_nested` fixture with nested object builders and
compare it with the decoded interoperability fixture.
- Build the `array_nested` fixture with nested object/list builders,
including null values, and compare it with the decoded fixture.

# Are these changes tested?

Yes. Both new tests pass against `apache/parquet-testing` commit
`73545118`:

- `cargo test -p parquet-variant --test variant_interop
variant_object_nested_builder`
- `cargo test -p parquet-variant --test variant_interop
variant_array_nested_builder`

# Are there any user-facing changes?

No. This PR adds test coverage only.


## AI assistance

OpenAI Codex assisted with inspecting the existing test coverage and
drafting the additional interoperability tests. I reviewed the final
test cases.

Co-authored-by: Jeffrey Vo <[email protected]>
Rich-T-kid pushed a commit to Rich-T-kid/arrow-rs that referenced this pull request Sep 18, 2026
…10637)

# Which issue does this PR close?

- Closes apache#10617.

# Rationale for this change

The Variant interoperability suite covers primitive objects and arrays
but does not exercise the nested object and array fixtures. This leaves
nested `VariantBuilder` encoding without equivalent fixture-based
coverage.

# What changes are included in this PR?

- Build the `object_nested` fixture with nested object builders and
compare it with the decoded interoperability fixture.
- Build the `array_nested` fixture with nested object/list builders,
including null values, and compare it with the decoded fixture.

# Are these changes tested?

Yes. Both new tests pass against `apache/parquet-testing` commit
`73545118`:

- `cargo test -p parquet-variant --test variant_interop
variant_object_nested_builder`
- `cargo test -p parquet-variant --test variant_interop
variant_array_nested_builder`

# Are there any user-facing changes?

No. This PR adds test coverage only.


## AI assistance

OpenAI Codex assisted with inspecting the existing test coverage and
drafting the additional interoperability tests. I reviewed the final
test cases.

Co-authored-by: Jeffrey Vo <[email protected]>
Rich-T-kid pushed a commit to Rich-T-kid/arrow-rs that referenced this pull request Sep 21, 2026
…10637)

# Which issue does this PR close?

- Closes apache#10617.

# Rationale for this change

The Variant interoperability suite covers primitive objects and arrays
but does not exercise the nested object and array fixtures. This leaves
nested `VariantBuilder` encoding without equivalent fixture-based
coverage.

# What changes are included in this PR?

- Build the `object_nested` fixture with nested object builders and
compare it with the decoded interoperability fixture.
- Build the `array_nested` fixture with nested object/list builders,
including null values, and compare it with the decoded fixture.

# Are these changes tested?

Yes. Both new tests pass against `apache/parquet-testing` commit
`73545118`:

- `cargo test -p parquet-variant --test variant_interop
variant_object_nested_builder`
- `cargo test -p parquet-variant --test variant_interop
variant_array_nested_builder`

# Are there any user-facing changes?

No. This PR adds test coverage only.


## AI assistance

OpenAI Codex assisted with inspecting the existing test coverage and
drafting the additional interoperability tests. I reviewed the final
test cases.

Co-authored-by: Jeffrey Vo <[email protected]>
Rich-T-kid pushed a commit to Rich-T-kid/arrow-rs that referenced this pull request Sep 25, 2026
…10637)

# Which issue does this PR close?

- Closes apache#10617.

# Rationale for this change

The Variant interoperability suite covers primitive objects and arrays
but does not exercise the nested object and array fixtures. This leaves
nested `VariantBuilder` encoding without equivalent fixture-based
coverage.

# What changes are included in this PR?

- Build the `object_nested` fixture with nested object builders and
compare it with the decoded interoperability fixture.
- Build the `array_nested` fixture with nested object/list builders,
including null values, and compare it with the decoded fixture.

# Are these changes tested?

Yes. Both new tests pass against `apache/parquet-testing` commit
`73545118`:

- `cargo test -p parquet-variant --test variant_interop
variant_object_nested_builder`
- `cargo test -p parquet-variant --test variant_interop
variant_array_nested_builder`

# Are there any user-facing changes?

No. This PR adds test coverage only.


## AI assistance

OpenAI Codex assisted with inspecting the existing test coverage and
drafting the additional interoperability tests. I reviewed the final
test cases.

Co-authored-by: Jeffrey Vo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet-variant parquet-variant* crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Variant] Add nested object and array interoperability tests

4 participants