Skip to content

Backport #112498 to 26.4: Fix segfault reading a Parquet file with an inconsistent bloom filter size - #114735

Merged
tiandiwonder merged 1 commit into
26.4from
backport/26.4/112498
Aug 14, 2026
Merged

tiandiwonder merged 1 commit into
26.4from
backport/26.4/112498

Conversation

@tiandiwonder

@tiandiwonder tiandiwonder commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request: #112498
Related: #114573
Related: #114574

Manual backport of #112498 to 26.4. The automation does not cover this branch — 26.4 is not in the supported set in SECURITY.md, so cherry_pick.py created backports only for 25.8, 26.3, 26.5, 26.6 and 26.7.

Cherry-pick of b05b99a with two conflicts resolved:

  • src/Processors/Formats/Impl/Parquet/Prefetcher.cpp — the new bounds check in getRangeData sits next to the cached_region zero-copy path on master, which does not exist on 26.4. Only the check was taken, and its comment no longer mentions cached_region. The invariant it relies on still holds: runTask does task->buf.resize(task->length), so task->length is the buffer size.
  • tests/queries/0_stateless/00900_long_parquet_load_2.sh — only the two lines the original pull request added to EXCLUDE were taken; the surrounding fixtures do not exist on 26.4.

The resulting diff is identical to the 26.3 backport (#114573) and, apart from those two resolutions, identical to the original pull request. input_format_parquet_use_native_reader_v3 and input_format_parquet_bloom_filter_push_down both default to 1 on 26.4, so 04654_parquet_bloom_filter_bitset_out_of_bounds exercises the fixed path as written.

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fixed a crash when reading a Parquet file with inconsistent bloom filter metadata. Such files could also silently return fewer rows than they should.

Version info

  • Merged into: 26.4.6.2

…ob-read

Fix segfault reading a Parquet file with an inconsistent bloom filter size

(cherry picked from commit b05b99a)
@tiandiwonder tiandiwonder added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Aug 14, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [6d6793e]

Summary: ✅

@tiandiwonder
tiandiwonder merged commit 86ce5ce into 26.4 Aug 14, 2026
35 checks passed
@tiandiwonder
tiandiwonder deleted the backport/26.4/112498 branch August 14, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant