Repository navigation
feat: parallel reading for vortex - #115096
Merged
alexey-milovidov merged 3 commits intoAug 19, 2026
Merged
Conversation
Signed-off-by: Dergousov Maksim <[email protected]>
`04907_vortex_parallel_read` covers the aggregates over a file with many row splits at 1, 4 and 16 parsing threads with and without `input_format_vortex_preserve_order`, the row order under `preserve_order`, the filter pushdown with several threads, an early exit through `LIMIT`, and a file with a single split. The reference of `04893_vortex_schema_cache` is updated as well: `master` changed the default of `schema_inference_make_columns_nullable` from 1 to 3 (nullability is taken from the file metadata), so the two `DESC` queries that do not pin the setting now infer `UInt64`/`String` instead of the nullable types recorded when the test was written. The number of schema cache entries the test asserts is unchanged. Signed-off-by: Dergousov Maksim <[email protected]> Co-Authored-By: Claude Fable 5 <[email protected]>
Member
Author
|
As measured on ClickBench: Mean of 3 runs, 8 cores, 31 GB RAM, single NVMe root volume, Linux 6.8 Geomean: 1.82×
p.s |
Member
|
Merged into #112950 (merge commit 746c2d5; the new test is renumbered to |
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.
The initial idea is close to ParquetV3 reader:
the format starts no threads of its own. we split the work of a file into small decode and read tasks and ClickHouse runs them on the same pools and thread limits
each decoded split is converted to columns on the thread that decoded it and ready chunks are handed to the query as soon as they appear or in file order on request
scan is not allowed to run far ahead of the query: new split starts only when the query has taken an older chunk and with one parsing thread everything runs inside the read call like in Parquet
note: image below is generated