Repository navigation
Conversation
…ed plan The test failed with NOT_IMPLEMENTED (WITH FILL is not supported in serialized sort description) on the distributed-plan CI job, where serialize_query_plan=1 is enabled globally and randomized prefer_localhost_replica=0 sends the localhost shard through the serialized query-plan path. Query-plan serialization deliberately rejects WITH FILL sort descriptions (serializeSortDescription). That limitation is orthogonal to the AST-rewrite path this test covers (ReplaceLongConstWithScalarVisitor turning WITH FILL constants into __getScalar nodes, fixed in ClickHouse#109938). Pin serialize_query_plan = 0 in the test so the genuinely-remote AST-send path stays exercised under prefer_localhost_replica=0 while the unimplemented plan-serialization path is avoided. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-3:20260710-210900 |
|
cc @vdimir — could you review this? Test-only follow-up to #109938: 04401_distributed_with_fill_const_to_scalar is flaky on the distributed-plan job because serialize_query_plan=1 + prefer_localhost_replica=0 routes the localhost shard through query-plan serialization, which rejects WITH FILL (NOT_IMPLEMENTED) — orthogonal to the AST path the test guards. Pins serialize_query_plan=0 so the genuinely-remote AST send is still exercised. |
|
Workflow [PR], commit [315a3da] Summary: ✅ AI ReviewSummaryThis PR makes Final Verdict
|
CI finish ledger — 315a3daCI fully finished (Finish Workflow / Mergeable Check / PR all pass). No failing checks. Every gate green.
Session id: cron:our-pr-ci-monitor:20260711-030000 |
|
Closing as superseded. Master already merged an identical fix for this exact flaky test in #110044 ( |
Related: #109938
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
04401_distributed_with_fill_const_to_scalar(added by #109938) is flaky on the distributed-plan CI job: 31/31 FAIL with randomized--prefer_localhost_replica 0, 65/65 PASS without it. ~5% master fail rate, seen across ~16 unrelated PRs on 2026-07-10.Root cause (deterministic repro isolated locally): the distributed-plan job sets
serialize_query_plan = 1globally. Withprefer_localhost_replica = 0, the localhost shard is sent through the serialized query-plan path, which deliberately rejectsWITH FILLsort descriptions inserializeSortDescription(src/Core/SortDescription.cpp):That query-plan-serialization limitation is orthogonal to what this test covers: the legacy AST-rewrite path where
ReplaceLongConstWithScalarVisitorturnsWITH FILLconstants into__getScalarnodes (the bug #109938 fixed inbuildQueryTreeForShard).Fix: pin
SET serialize_query_plan = 0in the test (same approach as02947_parallel_replicas_remote). This avoids the unimplemented plan-serialization path while keeping the genuinely-remote AST-send path exercised underprefer_localhost_replica = 0, so the test still guards the #109938 regression.Verified locally (debug, global
serialize_query_plan=1+prefer_localhost_replica=0):CI report of the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109741&sha=0e350e0a094e&name_0=PR&name_1=Stateless%20tests%20(amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel)