Repository navigation
Conversation
… guard Read coalescing bridges gaps shorter than the seek threshold to save requests, but many sub-threshold gaps can accumulate into a task that is almost entirely filler: reading a tiny, scattered column drags in its neighbouring columns and amplifies a few KB of wanted data into hundreds of MB read. Add `input_format_parquet_read_min_fill_ratio` (0 = off, range 0..1). During coalescing, `Prefetcher` stops extending a task once bridging the next gap would drop its wanted/span fraction below the ratio. Gaps below 64 KiB are always bridged, so dense reads are never split. New profile event `ParquetPrefetcherFillRatioLimitedTasks`. Ported from the fill-ratio part of #2181 Related: #2181 Co-authored-by: Cursor <[email protected]>
6 of 28 tasks
This branch has not been deployed
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.
Fill-ratio guard for read coalescing in the Parquet v3 reader. This is one independent feature split out of #2181, ported onto
antalya-26.8. Only the fill-ratio part of the original change is included.Prefetchercoalesces nearby column chunk ranges into one read when the gap is below the seek threshold. With a large threshold (remote storage) many such gaps add up: a tiny, scattered column (for example a constant column) drags in the wide columns between its chunks, so a few KB of wanted data turn into hundreds of MB read.New setting
input_format_parquet_read_min_fill_ratio(Double, range 0..1, 0 = off, the default): while extending a task in either direction,Prefetcherstops when including the next range would make the wanted bytes of the task less than this fraction of its span. Gaps below 64 KiB are always bridged, so dense reads are never split. A value outside 0..1 is rejected withBAD_ARGUMENTS. New profile eventParquetPrefetcherFillRatioLimitedTaskscounts how many times the guard stopped an extension.Tests: stateless test
05831_parquet_v3_read_min_fill_ratioreads one constant column from a file with wide neighbouring columns and a largeinput_format_parquet_local_file_min_bytes_for_seek; it checks that the result is the same and that the profile event is non-zero only with the guard on, and that an invalid ratio is rejected. It passed in the Praktika stateless job on a local aarch64 build.Related: #2181
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Add the experimental setting
input_format_parquet_read_min_fill_ratio(off by default). The Parquet reader stops coalescing reads through gaps when the resulting read would be mostly unwanted data, which avoids reading neighbouring columns when only a small scattered column is requested.Documentation entry for user-facing changes
The setting is documented by its
DECLAREdescription inFormatFactorySettings.h.CI/CD Options
Exclude tests:
Regression jobs to run: