Skip to content

Fix ScatterExchangeStep crash on a multi-bucket source (make_distributed_plan over Merge of Distributed) - #108401

Merged
davenger merged 9 commits into
ClickHouse:masterfrom
groeneai:fix-scatter-multishard-merge-107946
Jul 22, 2026
Merged

davenger merged 9 commits into
ClickHouse:masterfrom
groeneai:fix-scatter-multishard-merge-107946

Conversation

@groeneai

@groeneai groeneai commented Jun 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes: #107946

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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

Fixed a LOGICAL_ERROR exception (ScatterExchangeStep should have one source shard, got 8) and duplicated rows when querying a Merge table over Distributed tables or views with the experimental setting make_distributed_plan = 1.

Description

Root cause: the tryMakeDistributed* transforms are not idempotent, and some plans are optimized more than once. StorageMerge optimizes each child plan when it creates it and buildQueryPipeline optimizes it again when the child pipeline is built (set subplans take a similar double path through makePlansForSets and buildQueryPipeline). The second pass matched the same aggregation or join step again and stacked a second layer of exchanges on top of the first one:

Fixes:

  1. The distributed plan transforms now run only once per plan: optimizeTreeSecondPass skips them when the plan already contains a LogicalExchangeStep (exchanges are created only by these transforms, so their presence means the plan was distributed already).
  2. makeDistributedPlan now tracks whether a fragment's tasks produce copies of the same data (the case right after a BroadcastExchange) and throws a LOGICAL_ERROR if another exchange would consume such copies as a partition source, so a plan shape that would duplicate rows fails at plan time instead of returning wrong results.

The first commit in this PR relaxed the ScatterExchangeStep single-source guard; a later commit restores it. ScatterExchange declares a single source bucket, and a multi-bucket repartition is ShuffleExchange's job (optimizeExchanges rewrites a scatter over a gather into it), so with the transforms applied once per plan the guard holds again and catches a mislabeled plan at plan time.

Tests (both check the query plan shape with EXPLAIN and verify row counts):

  • 04367_distributed_plan_merge_scatter_multishard (reworked): the reproducer from the issue; the EXPLAIN shows the per-child plans under ReadFromMerge with a single layer of exchanges. Fails on master with the LOGICAL_ERROR.
  • 04613_distributed_plan_merge_broadcast_join (new): the broadcast join duplication. Verified against locally built binaries: without both fixes it returns every row 8 times; with fix 2 alone it throws the new LOGICAL_ERROR; with both fixes it returns correct rows. Neither test's split-time plan contains a ScatterExchange (the scatters are fused into a ShuffleExchange or optimized away, as the EXPLAIN references show), so the restored guard does not fire on them.

The reporter (qoega) suggested the localized guard-relaxation direction; deeper analysis showed the double transform application underneath, which this PR now fixes at the root.

The same exception signature (ScatterExchangeStep should have one source shard) was also produced by the AST fuzzer on several PR runs, e.g. https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=108129&sha=8aaab301293dd91ed33f6628d8e888802566c69a&name_0=PR&name_1=AST%20fuzzer%20%28arm_asan_ubsan%29 (AST fuzzer (arm_asan_ubsan)).

Version info

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

ScatterExchangeStep::createSinkAndSourcePair rejected any source with more
than one bucket with a LOGICAL_ERROR. This is reachable from SQL: aggregating
over a Merge table whose children are Distributed tables crashed the server
with 'ScatterExchangeStep should have one source shard, got 8' when
make_distributed_plan=1 (issue ClickHouse#107946).

StorageMerge::ReadFromMerge builds its children at a post-FetchColumns stage
and converts each child plan to a distributed plan on its own
(ReadFromMerge::buildPipeline -> QueryPlan::buildQueryPipeline ->
convertToDistributed). The per-child plan therefore carries a ScatterExchange
above an already-bucketed distributed read, so the scatter sees several source
buckets (distributed_plan_default_reader_bucket_count, 8 by default) and the
assertion aborts the server.

Scatter is documented as a special case of Shuffle whose source bucket count is
1, and it already reuses ShuffleSend/ShuffleReceive as its sink/source. Neither
step requires a single source bucket: ShuffleSend runs per source bucket and
ShuffleReceive reads every source bucket for its destination bucket. So when the
source happens to expose several buckets, the same pair correctly repartitions
all source buckets into the requested result buckets, i.e. behaves as a plain
shuffle - which is exactly what optimizeExchanges already does when it rewrites a
Scatter over a Gather into a ShuffleExchange. Drop the assertion and let the
multi-bucket source flow through.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

Pre-PR validation gate

# Question Answer
a Deterministic repro? Yes. SET make_distributed_plan=1, use_statistics=1, distributed_plan_optimize_exchanges=1, enable_parallel_replicas=0; SELECT count(_table) FROM m2 WHERE _table='d1' GROUP BY _table; over a Merge of two Distributed tables aborts the server 100% of the time on a debug build (build id a351d226). Confirmed crash + identical stack to the issue.
b Root cause explained? Yes. StorageMerge::ReadFromMerge builds its children at a post-FetchColumns stage and converts each child plan to a distributed plan on its own (ReadFromMerge::buildPipeline -> QueryPlan::buildQueryPipeline -> convertToDistributed). The per-child plan carries a ScatterExchange above an already-bucketed distributed read, so makeDistributedPlan reaches the scatter with source_shards.size()==8 (distributed_plan_default_reader_bucket_count), and ScatterExchangeStep::createSinkAndSourcePair threw LOGICAL_ERROR. Verified via test-level makeDistributedPlan traversal trace + EXPLAIN.
c Fix matches root cause? Yes. The throw is the only thing that rejected a multi-bucket source; the step already builds ShuffleSend/ShuffleReceive, which handle N source buckets. Dropping the assertion lets the documented "Scatter is a special case of Shuffle" degrade to a plain shuffle for a multi-bucket source. Not a symptom guard - it removes an over-strict invariant that SQL can legitimately violate.
d Test intent preserved / new tests added? New test 04367_distributed_plan_merge_scatter_multishard.sql added (the exact issue reproducer over test_shard_localhost); asserts the server survives. No existing test weakened.
e Both directions demonstrated? Yes. Without fix (build a351d226): server abort ScatterExchangeStep should have one source shard, got 8. With fix (build cffaad64): query runs, returns the same result as a single-node plan, server stays up; new test passes 10/10.
f Fix is general across code paths? Yes. The sibling BroadcastExchangeStep has the identical size()!=1 throw, but its BroadcastReceiveStep genuinely asserts source_shards.size()==1 (with a standing TODO) - multi-source broadcast is not implemented, so its assertion correctly stays. GatherExchangeStep already accepts N sources. Only Scatter reuses the source-count-agnostic ShuffleSend/ShuffleReceive, so only it is relaxed.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. The change is independent of key types, result_bucket_count, and hash_cast_types - it only stops rejecting source_shards.size() > 1 and forwards the full list to ShuffleReceive (which already loops over all source shards). Verified shuffle aggregation and shuffle join still produce correct results vs the non-distributed baseline.
h Backward compatible? (maintainer-approved exception only) Yes. No setting default, on-disk/wire format, or metadata change. make_distributed_plan is experimental and off by default; behavior for a single-bucket source is byte-identical to before.
i Invariants and contracts preserved? Yes. A ScatterExchangeStep with a 1-bucket source produces the exact same ShuffleSend/ShuffleReceive pair as before. For a multi-bucket source the pair is identical to what a ShuffleExchange(source=N, result=result_bucket_count) would build - which optimizeExchanges/tryReplaceScatterGatherWithShuffle already emits for a Scatter over a Gather. getSourceBucketCount() (hardcoded 1) is not consulted on the failing path (makeDistributed.cpp:956 uses the actual frame.list_of_shards.size()).

Session id: cron:clickhouse-worker-slot-1:20260624-162039

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @davenger @KochetovNicolai — could you review? make_distributed_plan over a Merge of Distributed tables distributes each child plan on its own, so a ScatterExchange ends up over an already-bucketed distributed read and its source has 8 buckets, tripping the single-source LOGICAL_ERROR. Since Scatter is a special case of Shuffle and already builds ShuffleSend/ShuffleReceive (both fine with N source buckets), this drops the assertion and lets the multi-bucket source flow through as a shuffle. @qoega confirmed the OSS repro and suggested this direction.

@clickhouse-gh

clickhouse-gh Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [b9d94d5]

Summary: ✅


AI Review

Summary

This PR fixes the original StorageMerge double-distribution bug by stopping the tryMakeDistributed* rewrites from running twice and by rejecting exchange-over-broadcast-copy plans, but the new planContainsLogicalExchange gate is too broad: it also suppresses the validation pass on already-distributed plans, which leaves at least one late-mutated ReadFromMergeTree path unchecked. I also still do not see focused evidence for the runtime-set / DelayedCreatingSetsStep half of the broader claim in the PR description, so the current change is not ready to approve.

Findings

⚠️ Majors

  • [src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:346] The new make_distributed_plan flag now disables checkDistributedReadSupported whenever a plan already contains any logical exchange, but StorageMerge can mutate an already-distributed child plan later via requestReadingInOrder. optimizeReadInOrder builds the child plans first, then sets input_order_info on their ReadFromMergeTree leaves; ReadFromMergeTree::requestReadingInOrder does not clear the existing bucketed-read state. On the next buildQueryPipeline, this guard skips the read-support validation, so makeDistributedPlan can reuse stale distributed-read buckets for a read-in-order child instead of rejecting it up front.
Tests
  • ⚠️ [src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:333] The PR description still says the same double-optimization problem affects runtime set subplans, but the added regressions only exercise the StorageMerge path. Please add a focused make_distributed_plan reproducer that actually goes through DelayedCreatingSetsStep::makePlansForSets and then re-enters buildQueryPipeline for a runtime set (GLOBAL IN / IN (SELECT ...)), or narrow the claim back to the path that is currently covered.
Final Verdict
  • Status: ⚠️ Request changes

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Jun 24, 2026
…on 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 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

Fixed the Fast test failure on the new regression test (04367) at fea96be.

Two CI-environment settings masked the crash path:

  • The test profile (tests/config/users.d/limits.yaml) sets max_rows_to_group_by=10G, and make_distributed_plan rejects aggregation with a non-zero limit (Code 344). Pinned max_rows_to_group_by=0.
  • clickhouse-test randomizes prefer_localhost_replica; with 0 the Distributed engine serializes the per-child plan to the localhost replica where the experimental BlocksMarshalling step is not deserializable (Code 47), unrelated to this crash. Pinned prefer_localhost_replica=1.

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 randomization.

Session id: cron:clickhouse-worker-slot-4:20260624-181800

Pin distributed_plan_max_rows_to_broadcast = 0 and
distributed_plan_default_reader_bucket_count = 3 so the distributed read is
neither broadcast nor single-bucket, which guarantees the per-child scatter sees
a multi-bucket source and the removed guard is actually exercised (verified: the
test fails with the pre-fix binary and passes with the fix). Add a non-empty
assertion through the same Merge over Distributed topology, filtering on the real
underlying table names that _table exposes, so the test proves rows survive the
multi-bucket scatter, not only that the no-row reproducer no longer throws.

Reword 'crashed the server' / 'survive' / 'abort' to 'raised the LOGICAL_ERROR
exception' / 'throw', since release builds throw an exception rather than crash.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

Updated the regression test and exception wording per the two review comments.

Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. SELECT count(_table) FROM m107946 WHERE _table = 'base107946_1' GROUP BY _table over a Merge of Distributed tables with make_distributed_plan = 1, distributed_plan_max_rows_to_broadcast = 0, distributed_plan_default_reader_bucket_count = 3 raises the exception deterministically on the pre-fix binary.
b Root cause explained? StorageMerge::ReadFromMerge converts each child plan to a distributed plan on its own, so the per-child plan carries a ScatterExchange above an already-bucketed distributed read. makeDistributedPlan reaches the scatter with N (>1) source buckets, and ScatterExchangeStep::createSinkAndSourcePair rejected source_shards.size() != 1 with a LOGICAL_ERROR.
c Fix matches root cause? Yes. The assertion is dropped because the step already builds ShuffleSend/ShuffleReceive, which handle a multi-bucket source (repartition all source buckets into the result buckets, i.e. behave as a plain shuffle). Same rewrite optimizeExchanges already performs for Scatter-over-Gather. Not a band-aid.
d Test intent preserved / new tests added? New regression test 04367_distributed_plan_merge_scatter_multishard. It now pins the distributed-read settings so the multi-bucket scatter path is forced, and adds a non-empty assertion through the same Merge-over-Distributed topology (counts must match the per-table row counts), so it proves rows survive the multi-bucket scatter rather than only that the no-row reproducer no longer throws.
e Both directions demonstrated? Yes. Pre-fix binary (build 0d3580d4): test FAILS, server dies with Logical error: 'ScatterExchangeStep should have one source shard, got 8'. Fixed binary (build cffaad64): 20/20 OK with full randomization.
f Fix is general across code paths? Yes. The change is in the shared ScatterExchangeStep, so every planner entry that builds a scatter over a multi-bucket source (OSS ReadFromMerge recursion and the cloud worker leaf path) is covered. BroadcastExchangeStep's analogous guard is intentionally left intact because BroadcastReceiveStep genuinely requires a single source (multi-source broadcast is unimplemented).
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. The fix is independent of column type and of the bucket count: ShuffleSend/ShuffleReceive already use getResultBucketCount() and the actual source_shards list, so any source bucket count >= 1 and any key type repartitions correctly. The test exercises a non-default bucket count (3) rather than relying on the default 8.
h Backward compatible? (maintainer-approved exception only) Yes. No setting default, on-disk/wire format, or validation change. The fix only removes an over-strict internal assertion on an experimental code path (make_distributed_plan), turning a hard error into correct execution.
i Invariants and contracts preserved? Yes. ShuffleSendStep/ShuffleReceiveStep are invoked exactly as they are for a real ShuffleExchange: ShuffleSend partitions each source bucket by hash(key_names) into getResultBucketCount() buckets; ShuffleReceive reads every entry of source_shards for its destination. The removed precondition (source_shards.size() == 1) was the only thing that distinguished a scatter from a shuffle at this layer, and getSourceBucketCount() (hardcoded 1) is not consulted on this path. Verified the non-distributed result oracle matches (100000 / 50000).

Session id: cron:clickhouse-worker-slot-2:20260624-231100

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 789c2ede1116

Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
AST fuzzer (amd_debug, targeted) / Block structure mismatch in UnionStep stream: different columns (STID 0993-27f0) trunk fuzzer LOGICAL_ERROR on WITH RECURSIVE ... UNION ALL Nullable(Nothing) Const-vs-full mismatch; 9 master hits / 20+ unrelated PRs in 30d; unrelated to this PR's ScatterExchangeStep change #107719 (ours, open)
Stress test (arm_msan) / Hung check failed, possible deadlock found chronic trunk shutdown-deadlock family (338 master hits/30d) #101680 / #105905 (ours, open)
CH Inc sync - CH Inc sync (private, not actionable)

No PR-caused failure on this head. (The earlier Fast test 04367 and STID 4661-51c1 failures were on prior commits a273cb6/fea96be8 and are not present on the covered head 789c2ed - Fast test is SUCCESS here.)

Session id: cron:our-pr-ci-monitor:20260625-030000

davenger and others added 4 commits July 20, 2026 23:26
The tryMakeDistributed* transforms are not idempotent, and StorageMerge
child plans and set subplans are optimized more than once. The second pass
wrapped the same aggregation or join step again, stacking a second layer of
exchanges on the plan and breaking it at split time.

Co-Authored-By: Claude Fable 5 <[email protected]>
Every destination bucket of a BroadcastExchange receives a full copy of the
input, so feeding those buckets into another exchange would send the same
rows once per copy. Track this property of the fragment task set during the
plan split and throw instead of building a plan that duplicates rows.

Co-Authored-By: Claude Fable 5 <[email protected]>
});
}

/// Some plans are optimized more than once (e.g. StorageMerge child plans, set subplans). The

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This guard is now the only proof point for the set subplans half of the fix, but the added regressions only cover StorageMerge (04367, 04613). I could not find a make_distributed_plan test that actually goes through DelayedCreatingSetsStep::makePlansForSets and then re-enters plan->buildQueryPipeline(...) for a runtime set (GLOBAL IN / IN (SELECT ...)).

Since that is the other known double-optimization path called out in the PR description, we are still shipping the broader contract without a regression that would fail if set plans keep stacking a second exchange layer. Please add a focused runtime-set reproducer here, or narrow the claim back to the StorageMerge path that is actually covered.

"make_distributed_plan does not support WITH TOTALS, ROLLUP, CUBE or extremes");
/// Reject reads whose coordinator snapshot/part-order state a worker cannot reproduce.
if (optimization_settings.make_distributed_plan)
if (make_distributed_plan)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This also gates the validation pass, and that breaks the StorageMerge read-in-order path.

optimizeReadInOrder builds the ReadFromMerge child plans first (buildInputOrderFromSortDescription calls merge->getSelectedTables() / getAllChildPlans()), then calls merge->requestReadingInOrder(...) afterwards. At that point the child plans may already contain logical exchanges from the first optimization pass, and ReadFromMergeTree::requestReadingInOrder only sets query_info.input_order_info / updates the sort description; it does not clear the previously computed distributed_read_bucket_count or distributed_read_buckets.

With the new !planContainsLogicalExchange(root) guard, the second buildQueryPipeline pass skips checkDistributedReadSupported, so that now-unsupported child read stays marked as bucketed until makeDistributedPlan reuses serializeDistributedReadBuckets() again (or, on the remote path, fails much later in ReadFromMergeTree::serialize). The idempotence fix should only skip the tryMakeDistributed* rewrites; the validations still need to run on already-distributed plans because later passes can mutate ReadFromMergeTree.

@clickhouse-gh

clickhouse-gh Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 86.20% 86.20% +0.00%
Functions 92.00% 92.00% +0.00%
Branches 78.30% 78.30% +0.00%

Changed lines: Changed C/C++ lines covered: 50/53 (94.34%) · Uncovered code

Full report · Diff report

@davenger
davenger added this pull request to the merge queue Jul 22, 2026
Merged via the queue into ClickHouse:master with commit 4d08ee5 Jul 22, 2026
352 of 354 checks passed
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 22, 2026
alexey-milovidov added a commit that referenced this pull request Aug 6, 2026
The previous commit cleared `make_distributed_plan` in the optimization
settings of the child plans of `ReadFromMerge`, but that disabled the whole
distributed planning of the children, and a `Merge` table over `Distributed`
tables intentionally converts each child plan to a distributed plan on its
own (see #108401). This failed the `Fast test` on
04367_distributed_plan_merge_scatter_multishard:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=113636&sha=d2b378e20bfae32ba1ace67846ff6c59f235f8be&name_0=PR&name_1=Fast%20test

Fix it at the actual defect instead: `materializeConstantsForSetOperationBranches`
exists because plan serialization stores only names and types, so constness is
re-derived per step after a fragment is deserialized. A plan with no logical
exchange steps is never split into serialized fragments (`convertToDistributed`
keeps it as a single stage executed in this process), so the rewrite must not
touch it. Gate the rewrite on `planContainsLogicalExchange`, and restore the
plain optimization settings for the child plans of `ReadFromMerge`.

Verified locally: 04812_merge_children_distributed_plan_const_mismatch fails
with `Block structure mismatch` on the unpatched binary and passes with this
change; 04367_distributed_plan_merge_scatter_multishard,
04613_distributed_plan_merge_broadcast_join and
04319_distributed_plan_set_operation_const_columns (and the rest of the
distributed_plan family, 22 tests) pass.

Co-Authored-By: Claude Fable 5 <[email protected]>
pvillamil pushed a commit to pvillamil/ClickHouse that referenced this pull request Aug 14, 2026
The previous commit cleared `make_distributed_plan` in the optimization
settings of the child plans of `ReadFromMerge`, but that disabled the whole
distributed planning of the children, and a `Merge` table over `Distributed`
tables intentionally converts each child plan to a distributed plan on its
own (see ClickHouse#108401). This failed the `Fast test` on
04367_distributed_plan_merge_scatter_multishard:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=113636&sha=d2b378e20bfae32ba1ace67846ff6c59f235f8be&name_0=PR&name_1=Fast%20test

Fix it at the actual defect instead: `materializeConstantsForSetOperationBranches`
exists because plan serialization stores only names and types, so constness is
re-derived per step after a fragment is deserialized. A plan with no logical
exchange steps is never split into serialized fragments (`convertToDistributed`
keeps it as a single stage executed in this process), so the rewrite must not
touch it. Gate the rewrite on `planContainsLogicalExchange`, and restore the
plain optimization settings for the child plans of `ReadFromMerge`.

Verified locally: 04812_merge_children_distributed_plan_const_mismatch fails
with `Block structure mismatch` on the unpatched binary and passes with this
change; 04367_distributed_plan_merge_scatter_multishard,
04613_distributed_plan_merge_broadcast_join and
04319_distributed_plan_set_operation_const_columns (and the rest of the
distributed_plan family, 22 tests) pass.

Co-Authored-By: Claude Fable 5 <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…hard-merge-107946

Fix ScatterExchangeStep crash on a multi-bucket source (make_distributed_plan over Merge of Distributed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-bugfix Pull request with bugfix, not backported by default 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.

Logical error: 'ScatterExchangeStep should have one source shard, got 8' with make_distributed_plan=1 + Merge table

4 participants