Repository navigation
Fix 04401_distributed_with_fill_const_to_scalar in the distributed plan shard - #110044
Merged
alexey-milovidov merged 1 commit intoJul 10, 2026
Merged
Conversation
…an shard `04401_distributed_with_fill_const_to_scalar` (added by #109938) runs distributed `ORDER BY ... WITH FILL` queries. The CI `distributed plan` shard installs `users.d/distributed_plan.xml`, which turns on `serialize_query_plan` globally. `serializeSortDescription` throws `NOT_IMPLEMENTED: WITH FILL is not supported in serialized sort description`, so every `WITH FILL` query fails there. On master the test fails ~6/8 times in `Stateless tests (amd_asan_ubsan, distributed plan, parallel)` while being green in every default-settings shard (`serialize_query_plan` defaults to 0). The test targets the query-tree shard rewrite in `buildQueryTreeForShard` (the `Bad cast from type DB::FunctionNode to DB::ConstantNode` fix), which is only exercised with `serialize_query_plan = 0` anyway. Pin the setting to 0 on each query, mirroring the existing opt-out used by other distributed tests (e.g. `02535_max_parallel_replicas_custom_key_rmt`, `03403_parallel_blocks_marshalling_for_distributed`). Results are unchanged, so the reference file stays identical. Surfaced on the CI report of PR #96823 (shard `Stateless tests (amd_asan_ubsan, distributed plan, parallel)`). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [911eea9] Summary: ✅ AI ReviewSummaryThis PR narrows Final Verdict
|
1 task done
alexey-milovidov
deleted the
fix-04401-distributed-with-fill-serialize-plan
branch
July 10, 2026 23:50
1 task
alexey-milovidov
added a commit
that referenced
this pull request
Jul 12, 2026
Pulls in the fix for `04401_distributed_with_fill_const_to_scalar` (#110044), which failed in this PR's CI for a reason unrelated to this change. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110054&sha=23a2c8531223fb3e39c904bffdcd10c229cabeef
This was referenced Jul 19, 2026
Closed
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…buted-with-fill-serialize-plan Fix 04401_distributed_with_fill_const_to_scalar in the distributed plan shard
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.
Fixes the stateless test
04401_distributed_with_fill_const_to_scalarin the CIdistributed planshard.The test (added by #109938) runs distributed
ORDER BY ... WITH FILLqueries. Thedistributed planshard installsusers.d/distributed_plan.xml, which enablesserialize_query_planglobally.serializeSortDescriptionthrowsNOT_IMPLEMENTED: WITH FILL is not supported in serialized sort description, so everyWITH FILLquery fails there. Onmasterthe test fails ~6/8 times inStateless tests (amd_asan_ubsan, distributed plan, parallel)while staying green in every default-settings shard (serialize_query_plandefaults to0).The test targets the query-tree shard rewrite in
buildQueryTreeForShard(theBad cast from type DB::FunctionNode to DB::ConstantNodefix), which is only exercised withserialize_query_plan = 0anyway. This pins the setting to0on each query, mirroring the existing opt-out used by other distributed tests (e.g.02535_max_parallel_replicas_custom_key_rmt,03403_parallel_blocks_marshalling_for_distributed). Results are unchanged, so the reference file stays identical.Surfaced on the CI report of PR #96823, shard
Stateless tests (amd_asan_ubsan, distributed plan, parallel): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=96823&sha=ca7d00e6093e1544be83e8bb9545138a87b4968e&name_0=PR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Documentation entry for user-facing changes
Version info
26.7.1.785(included in26.7and later)