Repository navigation
Backport #112498 to 26.4: Fix segfault reading a Parquet file with an inconsistent bloom filter size - #114735
Merged
Conversation
…ob-read Fix segfault reading a Parquet file with an inconsistent bloom filter size (cherry picked from commit b05b99a)
Contributor
|
Workflow [BackportPR], commit [6d6793e] Summary: ✅ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original pull-request: #112498
Related: #114573
Related: #114574
Manual backport of #112498 to
26.4. The automation does not cover this branch —26.4is not in the supported set inSECURITY.md, socherry_pick.pycreated backports only for25.8,26.3,26.5,26.6and26.7.Cherry-pick of b05b99a with two conflicts resolved:
src/Processors/Formats/Impl/Parquet/Prefetcher.cpp— the new bounds check ingetRangeDatasits next to thecached_regionzero-copy path onmaster, which does not exist on26.4. Only the check was taken, and its comment no longer mentionscached_region. The invariant it relies on still holds:runTaskdoestask->buf.resize(task->length), sotask->lengthis the buffer size.tests/queries/0_stateless/00900_long_parquet_load_2.sh— only the two lines the original pull request added toEXCLUDEwere taken; the surrounding fixtures do not exist on26.4.The resulting diff is identical to the
26.3backport (#114573) and, apart from those two resolutions, identical to the original pull request.input_format_parquet_use_native_reader_v3andinput_format_parquet_bloom_filter_push_downboth default to1on26.4, so04654_parquet_bloom_filter_bitset_out_of_boundsexercises the fixed path as written.Changelog category (leave one):
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
26.4.6.2