Skip to content

Conversation

@rambleraptor
Copy link
Contributor

fix: Prevent panic in DeltaBitPackDecoder with zero mini_blocks_per_block

This change introduces a check to prevent a division-by-zero panic in DeltaBitPackDecoder if mini_blocks_per_block is zero. This can happen with malformed data. A test case is added to ensure the error is handled gracefully.

@github-actions github-actions bot added the parquet Changes to the parquet crate label Nov 20, 2025
Copy link
Contributor

@etseidl etseidl left a comment

Choose a reason for hiding this comment

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

Thanks @rambleraptor, this looks good to me.

@etseidl
Copy link
Contributor

etseidl commented Nov 20, 2025

Thanks @rambleraptor. I'll merge this once 57.1.0 is tagged.

@etseidl etseidl merged commit 49ed6ef into apache:main Nov 22, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants