Pin max_rows_to_group_by and prefer_localhost_replica in the regressi… · ClickHouse/ClickHouse@fea96be · GitHub
Skip to content

Commit fea96be

Browse files
groeneaiclaude
andcommitted
Pin max_rows_to_group_by and prefer_localhost_replica in the regression test
The CI test profile (tests/config/users.d/limits.yaml) sets max_rows_to_group_by to 10G, and make_distributed_plan rejects aggregation with a non-zero limit (Code 344, SUPPORT_IS_DISABLED). That fired before the query could reach the ScatterExchangeStep path, so the Fast test for this regression failed without exercising the fix. clickhouse-test also randomizes prefer_localhost_replica. With it set to 0 the Distributed engine serializes the per-child plan to the localhost replica, where the experimental BlocksMarshalling step is not deserializable (Code 47, UNKNOWN_IDENTIFIER). That path is unrelated to the crash, which happens earlier while building the per-child plan. Pin both settings so the query deterministically reaches the multi-bucket ScatterExchangeStep. EXPLAIN distributed=1 confirms the per-child plan still carries a ShuffleExchange over a bucketed ReadFromMergeTree (the step that threw 'should have one source shard, got 8' before the fix), so crash-path coverage is preserved. 20/20 runs pass under full CI randomization. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a273cb6 commit fea96be

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/queries/0_stateless/04367_distributed_plan_merge_scatter_multishard.sql

Lines changed: 7 additions & 1 deletion

0 commit comments

Comments
 (0)