Skip to content

fix(variant): improve malformed object field diagnostics - #10638

Merged
alamb merged 2 commits into
apache:mainfrom
cakeni:fix/variant-malformed-object-field
Aug 19, 2026
Merged

alamb merged 2 commits into
apache:mainfrom
cakeni:fix/variant-malformed-object-field

Conversation

@cakeni

@cakeni cakeni commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

A named child of a shredded object is required to use the shredded Variant field Struct layout. Treating a present child with another Arrow type as a missing path would hide malformed input, so the existing InvalidArgumentError is the correct boundary.

What changes are included in this PR?

  • Document the shredded-object field invariant where it is validated.
  • Include the field name and actual Arrow type in the error.
  • Add a malformed Int32 child regression test.

Are these changes tested?

  • cargo +stable-x86_64-pc-windows-gnu test -p parquet-variant-compute --lib (348 passed)
  • cargo fmt --all -- --check
  • git diff --check

Are there any user-facing changes?

Malformed shredded object errors now identify the offending field and physical type. There are no public API changes.

AI assistance

OpenAI Codex assisted with investigating the error path and drafting the fix and regression tests. I reviewed and verified the final change.

@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label Aug 11, 2026

@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.

Thank you @cakeni

@alamb
alamb merged commit 498e41a 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
# Which issue does this PR close?

- Closes apache#10619.

# Rationale for this change

A named child of a shredded object is required to use the shredded
Variant field Struct layout. Treating a present child with another Arrow
type as a missing path would hide malformed input, so the existing
InvalidArgumentError is the correct boundary.

# What changes are included in this PR?

- Document the shredded-object field invariant where it is validated.
- Include the field name and actual Arrow type in the error.
- Add a malformed Int32 child regression test.

# Are these changes tested?

- cargo +stable-x86_64-pc-windows-gnu test -p parquet-variant-compute
--lib (348 passed)
- cargo fmt --all -- --check
- git diff --check

# Are there any user-facing changes?

Malformed shredded object errors now identify the offending field and
physical type. There are no public API changes.

## AI assistance

OpenAI Codex assisted with investigating the error path and drafting the
fix and regression tests. I reviewed and verified the final change.

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
# Which issue does this PR close?

- Closes apache#10619.

# Rationale for this change

A named child of a shredded object is required to use the shredded
Variant field Struct layout. Treating a present child with another Arrow
type as a missing path would hide malformed input, so the existing
InvalidArgumentError is the correct boundary.

# What changes are included in this PR?

- Document the shredded-object field invariant where it is validated.
- Include the field name and actual Arrow type in the error.
- Add a malformed Int32 child regression test.

# Are these changes tested?

- cargo +stable-x86_64-pc-windows-gnu test -p parquet-variant-compute
--lib (348 passed)
- cargo fmt --all -- --check
- git diff --check

# Are there any user-facing changes?

Malformed shredded object errors now identify the offending field and
physical type. There are no public API changes.

## AI assistance

OpenAI Codex assisted with investigating the error path and drafting the
fix and regression tests. I reviewed and verified the final change.

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
# Which issue does this PR close?

- Closes apache#10619.

# Rationale for this change

A named child of a shredded object is required to use the shredded
Variant field Struct layout. Treating a present child with another Arrow
type as a missing path would hide malformed input, so the existing
InvalidArgumentError is the correct boundary.

# What changes are included in this PR?

- Document the shredded-object field invariant where it is validated.
- Include the field name and actual Arrow type in the error.
- Add a malformed Int32 child regression test.

# Are these changes tested?

- cargo +stable-x86_64-pc-windows-gnu test -p parquet-variant-compute
--lib (348 passed)
- cargo fmt --all -- --check
- git diff --check

# Are there any user-facing changes?

Malformed shredded object errors now identify the offending field and
physical type. There are no public API changes.

## AI assistance

OpenAI Codex assisted with investigating the error path and drafting the
fix and regression tests. I reviewed and verified the final change.

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
# Which issue does this PR close?

- Closes apache#10619.

# Rationale for this change

A named child of a shredded object is required to use the shredded
Variant field Struct layout. Treating a present child with another Arrow
type as a missing path would hide malformed input, so the existing
InvalidArgumentError is the correct boundary.

# What changes are included in this PR?

- Document the shredded-object field invariant where it is validated.
- Include the field name and actual Arrow type in the error.
- Add a malformed Int32 child regression test.

# Are these changes tested?

- cargo +stable-x86_64-pc-windows-gnu test -p parquet-variant-compute
--lib (348 passed)
- cargo fmt --all -- --check
- git diff --check

# Are there any user-facing changes?

Malformed shredded object errors now identify the offending field and
physical type. There are no public API changes.

## AI assistance

OpenAI Codex assisted with investigating the error path and drafting the
fix and regression tests. I reviewed and verified the final change.

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
# Which issue does this PR close?

- Closes apache#10619.

# Rationale for this change

A named child of a shredded object is required to use the shredded
Variant field Struct layout. Treating a present child with another Arrow
type as a missing path would hide malformed input, so the existing
InvalidArgumentError is the correct boundary.

# What changes are included in this PR?

- Document the shredded-object field invariant where it is validated.
- Include the field name and actual Arrow type in the error.
- Add a malformed Int32 child regression test.

# Are these changes tested?

- cargo +stable-x86_64-pc-windows-gnu test -p parquet-variant-compute
--lib (348 passed)
- cargo fmt --all -- --check
- git diff --check

# Are there any user-facing changes?

Malformed shredded object errors now identify the offending field and
physical type. There are no public API changes.

## AI assistance

OpenAI Codex assisted with investigating the error path and drafting the
fix and regression tests. I reviewed and verified the final change.

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
# Which issue does this PR close?

- Closes apache#10619.

# Rationale for this change

A named child of a shredded object is required to use the shredded
Variant field Struct layout. Treating a present child with another Arrow
type as a missing path would hide malformed input, so the existing
InvalidArgumentError is the correct boundary.

# What changes are included in this PR?

- Document the shredded-object field invariant where it is validated.
- Include the field name and actual Arrow type in the error.
- Add a malformed Int32 child regression test.

# Are these changes tested?

- cargo +stable-x86_64-pc-windows-gnu test -p parquet-variant-compute
--lib (348 passed)
- cargo fmt --all -- --check
- git diff --check

# Are there any user-facing changes?

Malformed shredded object errors now identify the offending field and
physical type. There are no public API changes.

## AI assistance

OpenAI Codex assisted with investigating the error path and drafting the
fix and regression tests. I reviewed and verified the final change.

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] Document and test validation of malformed shredded object fields

3 participants