Skip to content

Fix 04401_distributed_with_fill_const_to_scalar in the distributed plan shard - #110044

Merged
alexey-milovidov merged 1 commit into
masterfrom
fix-04401-distributed-with-fill-serialize-plan
Jul 10, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
fix-04401-distributed-with-fill-serialize-plan

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Jul 10, 2026 •

Copy link
Copy Markdown
Member

Fixes the stateless test 04401_distributed_with_fill_const_to_scalar in the CI distributed plan shard.

The test (added by #109938) runs distributed ORDER BY ... WITH FILL queries. The distributed plan shard installs users.d/distributed_plan.xml, which enables 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 staying 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. This pins 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): 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%29

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.7.1.785 (included in 26.7 and later)

…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]>
@clickhouse-gh

clickhouse-gh Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [911eea9]

Summary: ✅


AI Review

Summary

This PR narrows 04401_distributed_with_fill_const_to_scalar to the non-serialized distributed path it was written to cover by forcing serialize_query_plan = 0 on the three WITH FILL queries. That avoids the unrelated NOT_IMPLEMENTED from serializeSortDescription in the distributed plan shard without weakening the intended buildQueryTreeForShard regression coverage, and I did not find correctness, coverage, or PR-metadata issues in the patch.

Final Verdict
  • Status: ✅ Approve

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexey-milovidov alexey-milovidov self-assigned this Jul 10, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jul 10, 2026
Merged via the queue into master with commit 7530b3c Jul 10, 2026
176 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-04401-distributed-with-fill-serialize-plan branch July 10, 2026 23:50
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 11, 2026
alexey-milovidov added a commit that referenced this pull request Jul 12, 2026
This was referenced Jul 19, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants