Skip to content

feat(ipc): add with_skip_validation to StreamDecoder #9749

Open
pantShrey wants to merge 1 commit intoapache:mainfrom
pantShrey:add-skip-validation-stream-decoder
Open

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

Conversation

@pantShrey
Copy link
Copy Markdown

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

1 participant