Repository navigation
Add integration tests for wide-row parquet memory over s3() - #119300
Merged
alexey-milovidov merged 4 commits intoSep 23, 2026
Merged
alexey-milovidov merged 4 commits into
alexey-milovidov merged 4 commits into
Conversation
This was referenced Sep 10, 2026
erezrokah
force-pushed
the
parquet-wide-rows-memory-repro
branch
from
September 11, 2026 07:40
907f0d4 to
c92b70f
Compare
erezrokah
marked this pull request as ready for review
September 11, 2026 07:43
This was referenced Sep 14, 2026
Contributor
|
Workflow [PR], commit [e7e1c89] Summary: ✅ AI ReviewSummaryThis PR adds wide-row Parquet memory coverage to Final Verdict✅ No blocking or major findings. |
erezrokah
force-pushed
the
parquet-wide-rows-memory-repro
branch
from
September 21, 2026 11:24
d8c9bc6 to
d11e59b
Compare
Reads and copies a ~240 MB payload out of one bucket object, laid out both as a single row group and as one row group per row, under memory limits taken from the two readers' measured peaks on 26.2.19.43. On 26.2 the arrow reader meets the limit for the single-row-group read and for both inserts; on 26.8 nothing does, and the exception names ParquetV3BlockInputFormat even with input_format_parquet_use_native_reader_v3=0. Reader v3 is the cheaper path for reading many row groups, which the third case covers. wide_rows_memory_matrix.sh runs the tests against several released versions, each at its own tag, since an older binary rejects a newer programs/server/config.xml and never starts.
The script appended its test block only when the file did not already contain it, so a checkout left over from an earlier run kept the tests it was first given. It also discarded the runner's exit status and picked the newest result JSON in ci/tmp, which can belong to a previous run. The test file is now reset before the block is appended, only results written after the run started are read, and a runner that exits non-zero without producing results is reported instead of passing silently.
erezrokah
force-pushed
the
parquet-wide-rows-memory-repro
branch
from
September 21, 2026 11:27
d11e59b to
0170565
Compare
…te reader split The helper pulled the server binary from the floating `clickhouse/clickhouse-server:26.2` tag while checking the source out at `v26.2.19.43-stable`, so it paired an old tree with whatever binary that alias points at today. It now derives the exact release from the tag and caches the binary under that exact version. Its cleanup removed every container whose name contains `praktika`, including jobs of other worktrees on the same host; it now removes only containers mounted from its own checkout. Its default work directory was a single host-global path, so two checkouts shared one results file and one binary cache; it now defaults under the checkout. `report` printed the leaf rows and dropped the run's own status, so a run that broke after writing some rows read as a shorter but valid matrix. It now adds an explicit row whenever the status is neither OK nor FAIL. `input_format_parquet_use_native_reader_v3` is obsolete on master, so parametrizing the in-tree tests over it ran the same reader twice and doubled their cost for no coverage. The tests keep the one supported reader; the comparison moves to the matrix helper, which runs each release under both readers, where the setting still selects between them.
…ner exit row On `v26.8.2.7-lts` `input_format_parquet_use_native_reader_v3` is already `MAKE_OBSOLETE`, so its `arrow` and `v3` rows ran the same reader twice and made the matrix look like a cross-reader comparison it was not. The helper now reads the tag's `src/Core/FormatFactorySettings.h` and runs the release once when the setting is obsolete. The `(no result file from this run)` note matched the label check that guards the `(runner exited N, see log)` row, so a broken run lost its exit code and log path. The guard now counts only test rows, not the script's own parenthesised notes.
Member
|
They are green :) |
alexey-milovidov
approved these changes
Sep 23, 2026
Member
|
Thank you! |
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.
Related: #120027
Related: #120028
Related: #120029
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required.
Documentation entry for user-facing changes
Not applicable.
What this PR does
Adds integration tests that read and copy a wide-row parquet object over
s3()under a memory limit, and measures what removing the Arrow-based reader in #100949 costs those queries. Three cases pass on 26.2 and fail on 26.8, so the tests are red and this is a draft.The fixture is 20 rows with one
Stringcolumn of about 12 MB each, so about 240 MB in one object, written both as a single row group and as one row group per row.readeris the value ofinput_format_parquet_use_native_reader_v3, obsolete on 26.8. Eachmax_memory_usagesits between the two readers' peaks on 26.2. Peaks in brackets come fromsystem.query_logunder an 8 GiB limit, as a range where repeated runs differ.max_memory_usageRunning it
What this PR does not do
It does not fix anything, and does not say where the memory is held.
Workflow [PR]
Sync PR [sync-upstream/pr/119300]
Version info
26.10.1.555-master(included in26.10and later)