Skip to content

fix(arrow/util): handle invalid protobuf Any values - #1086

Merged
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/protobuf-any-errors
Aug 7, 2026
Merged

fix(arrow/util): handle invalid protobuf Any values#1086
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/protobuf-any-errors

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

An unknown protobuf Any type URL or invalid payload can leave the unpacked message nil. The schema conversion path then dereferences it instead of preserving the physical Any fields.

What changes are included in this PR?

Handle unpacking errors and fall back to reflecting type_url and value. Avoid copying protobuf message state during conversion.

Are these changes tested?

  • go test ./arrow/util
  • go vet ./arrow/util
  • Added malformed Any schema and record coverage.

Are there any user-facing changes?

No API changes. This corrects the reported behavior while preserving the existing ownership and compatibility contracts.

@fallintoplace
fallintoplace force-pushed the fix/protobuf-any-errors branch from 37aaa0f to 1ff0889 Compare August 1, 2026 22:50

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

Just need to fix the merge conflicts

@fallintoplace
fallintoplace force-pushed the fix/protobuf-any-errors branch from 1ff0889 to 914d93d Compare August 5, 2026 18:49
@fallintoplace fallintoplace changed the title fix(arrow/util): handle malformed protobuf Any values fix(arrow/util): handle protobuf Any unpacking failures Aug 5, 2026
@fallintoplace
fallintoplace force-pushed the fix/protobuf-any-errors branch from 914d93d to 08287f0 Compare August 5, 2026 23:48
@fallintoplace fallintoplace changed the title fix(arrow/util): handle protobuf Any unpacking failures fix(arrow/util): handle invalid protobuf Any values Aug 6, 2026
@zeroshade
zeroshade merged commit 279c7ae into apache:main Aug 7, 2026
38 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants