Skip to content

feat(ipc): add with_skip_validation to StreamDecoder #9749

Merged
alamb merged 1 commit intoapache:mainfrom
pantShrey:add-skip-validation-stream-decoder
Apr 23, 2026
Merged

feat(ipc): add with_skip_validation to StreamDecoder #9749
alamb merged 1 commit intoapache:mainfrom
pantShrey:add-skip-validation-stream-decoder

Conversation

@pantShrey
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

N/A - this is a small API parity fix.

Rationale for this change

StreamReader and FileDecoder both expose with_skip_validation but StreamDecoder does not, despite having the same internal skip_validation field.
Motivation: DataFusion's spill infrastructure is being refactored to use StreamDecoder for reading spill files via a pluggable backend trait (apache/datafusion#21215). Since DataFusion controls what it writes it can trust its own IPC output, and needs this method to maintain the same performance characteristic as the current StreamReader-based implementation

What changes are included in this PR?

Adds with_skip_validation to StreamDecoder mirroring the existing implementation on FileDecoder

Are these changes tested?

The existing StreamDecoder tests cover the decoding path. No new tests added as this method sets an internal flag already tested via FileDecoder and StreamReader.

Are there any user-facing changes?

Yes, with_skip_validation is now available on StreamDecoder. It is marked unsafe with the same safety requirements as FileDecoder::with_skip_validation.

@github-actions github-actions Bot added the arrow Changes to the arrow crate label Apr 16, 2026
Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @pantShrey -- makes sense to me

@alamb alamb merged commit 2a77e10 into apache:main Apr 23, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants