Repository navigation
Force the analyzer in 03707_autopr_unsupported_cases - #117364
Merged
Merged
Conversation
The automatic parallel replicas optimization runs over the query plan, and only the analyzer builds one - `InterpreterSelectQuery` turns `enable_parallel_replicas` off as soon as it sees `enable_parallel_replicas` together with a non-zero `automatic_parallel_replicas_mode`. So with the old analyzer the two `supported_*` shapes added in #116540 collect no dataflow statistics either and print `0 0`, which fails the test deterministically in the old-analyzer job. Every other `*_autopr_*` test already pins `enable_analyzer=1`; do the same here. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=828b3cd06ccd76999a396db1451d3eb3f24325cc&name_0=MasterCI&name_1=Stateless%20tests%20(amd_llvm_coverage%2C%20old%20analyzer%2C%20s3%20storage%2C%20DBReplicated%2C%20parallel%2C%201%2F3) Caused by: #116540 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017SM8hLHmtt2vngrfB7758u
Contributor
|
Workflow [PR], commit [054e616] Summary: ✅ AI ReviewSummaryThis PR makes Final Verdict✅ No findings in the current PR diff. |
nickitat
enabled auto-merge
August 31, 2026 17:23
alexey-milovidov
approved these changes
Aug 31, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 31, 2026
Member
Author
|
As far as I see, it isn't really about the test: |
This was referenced Aug 31, 2026
groeneai
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Sep 1, 2026
…builder `Stateless tests (amd_llvm_coverage, old analyzer, s3 storage, DBReplicated, parallel, 1/3)` failed on 920bacd with a one-line diff: `arm5b_mixed_limit_offset` printed 1 where the reference has 0. Every value line was byte-identical, so only the arming assertion moved. The runner's own reproducibility check reported 3 failures out of 3 reruns. `TableJoin::TableJoin(const Settings &, JoinAnalyzeMode, ...)`, the constructor `JoinedTables::makeTableJoin` uses, never assigns `joined_block_split_single_row`, so it keeps its in-class `false`; only the `JoinSettings` constructor the analyzer's join step uses reads the setting. `HashJoinResult::next` selects `buildOutputFromBlocksLimitAndOffset` from that property, so with `enable_analyzer = 0` the three arms that ask for the limit and offset builder silently get the by-blocks builder instead. Arm 5b is the arm where that shows: it exists to pin that the limit and offset builder is all or nothing, and the by-blocks builder decides per column, so it gathers `a` beside the `LowCardinality(String)` the gather cannot take. Arms 5 and 14c admit every column, so both builders agree on their numbers and they were passing while covering the same builder arms 3 and 14 already cover. All three now pin `enable_analyzer = 1`. Measured against a server whose default profile sets `enable_analyzer = 0`, which is how the failing job configures it. The CI diff line reproduces in 0.59 s, and `HashJoinDirectGatheredValues` for arm 5b's shape is 0 with the analyzer and 1000 with the old analyzer while both return the same 1000 rows and the same `cityHash64` sum. The switch is the builder, not the column type: with every payload admitted the count is 2000 either way, and a `Map(String, UInt64)` payload behaves exactly like the `LowCardinality(String)` one. `output_by_row_list` is true on both planners, which `arm3_by_ref_lists` confirms by staying at 0. With the pins the test is 30/30 green on the old-analyzer server with randomized settings and 50/50 on the analyzer one, and no reference value changes. Removing only arm 5b's pin from this tree brings back the same single diff line, so the arm still fails if the property it asserts breaks. Same remedy as ClickHouse#117364, which pinned `enable_analyzer` in `03707_autopr_unsupported_cases` for an optimization only the analyzer's query plan reaches. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Sep 1, 2026
groeneai
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Sep 2, 2026
Requested by the reviewer to get a fresh CI run. Master at bb3c0a8 carries the fixes for all three failures on the previous head: ClickHouse#117397 (finished-stages drain test out of the parallel suite), ClickHouse#117364 (force the analyzer in 03707_autopr_unsupported_cases) and ClickHouse#117412 (integration tests' nested container budget).
groeneai
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Sep 2, 2026
Picks up ClickHouse#117364 (fixes 03707_autopr_unsupported_cases under the old analyzer) and ClickHouse#117412 (fixes the nested container memory budget that OOM-killed integration test containers), which owned two of the failures on the previous head. The Bugfix validation "Could not find master builds in S3" failures have also stopped occurring upstream.
This was referenced Sep 3, 2026
This was referenced Sep 5, 2026
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.
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/117364]
Version info
26.9.1.464(included in26.9and later)