Repository navigation
Print only the profile event totals in 05141_parquet_time_stats_pruning and 05361_parquet_geometry_logical_type_interop - #130688
Merged
alexey-milovidov merged 1 commit intoNov 11, 2026
Conversation
`05141_parquet_time_stats_pruning` and `05361_parquet_geometry_logical_type_interop` grep row group counters from `clickhouse-local --print-profile-events` and expect one line per counter with its total. Since ClickHouse#125738 a single local Parquet file is split into buckets read by separate sources, and each bucket's `ReadManager::init` adds its own share of `ParquetReadRowGroups` / `ParquetPrunedRowGroups`. `LocalConnection` sends a ProfileEvents packet with the deltas every `interactive_delay` (100 ms), and with the default `--profile-events-delay-ms=0` the client prints every packet separately. When the sources initialize on both sides of a packet (sanitizer builds, loaded runners), a counter is printed as partial lines, e.g. `ParquetPrunedRowGroups: 1` and `: 2` instead of `: 3`. The totals are correct. `--profile-events-delay-ms=-1` makes the client sum all packets and print each counter once at the end, which is what the tests assert. The references are unchanged. Forcing a packet every 1 ms (`--interactive_delay=1000`) with the CI amd_binary builds: the 05141 query splits the counter in 0/50 runs before ClickHouse#125738, 17/50 at its merge commit, 32/50 at the base of this change and 0/50 with `-1`; 05141 fails 5/20 and 05361 20/20 without the change and both pass 50/50 with it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings). The reviewer's own cold review found no blocker or major issue either, so there is nothing to adjudicate. Session id: cron:clickhouse-review-slot-9:20261111-042800 |
Collaborator
Author
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261111-035700 |
This was referenced Nov 11, 2026
Contributor
|
Workflow [PR], commit [db11d1a] Summary: ✅ AI ReviewSummaryPR #130688 adds Missing context / blind spots
Final VerdictStatus: ✅ Approve. No required changes. |
alexey-milovidov
approved these changes
Nov 11, 2026
Merged
via the queue into
ClickHouse:master
with commit Nov 11, 2026
183e9ae
369 of 370 checks passed
1 task done
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: #125738
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Description
Since 2026-11-10,
05141_parquet_time_stats_pruningfails with a row group counter printed on two lines whose values add up to the expected one, e.g.ParquetPrunedRowGroups: 1andParquetPrunedRowGroups: 2instead ofParquetPrunedRowGroups: 3(master, Stateless tests (amd_tsan, parallel), and 6 PR runs).05361_parquet_geometry_logical_type_interopfailed the same way,8+1instead of9(master, Stateless tests (amd_tsan, s3 storage, parallel, 2/3)).Since #125738, a single local Parquet file is read by several sources, and each one adds its own share of
ParquetReadRowGroups/ParquetPrunedRowGroupswhen it starts.clickhouse-localsends aProfileEventspacket with the deltas everyinteractive_delay(100 ms), and at the default--profile-events-delay-ms=0the client prints every packet separately. When the sources start on both sides of a packet (a sanitizer build, a loaded runner), one counter is printed as partial lines. The totals are correct.Both tests now pass
--profile-events-delay-ms=-1, which prints each counter once with its total, as02310_profile_events_insertdoes. The references are unchanged, and the tests still check the same numbers on the split read path.Validation with the CI
amd_binarybuilds, forcing a packet every 1 ms (--interactive_delay=1000): the 05141 query prints the counter on several lines in 0/50 runs before #125738, 17/50 at its merge commit, 32/50 at this PR's base, and 0/50 with-1. Under that cadence 05141 fails 5/20 and 05361 20/20 without the change, both pass 50/50 with it, and both pass 50/50 at the default cadence.Reverting #125738 would also stop these failures; I changed the tests instead because the counters it produces are correct.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/130688]
Version info
26.11.1.1986-master(included in26.11and later)