Skip to content

Commit 4c11241

Browse files
committed
allow 1st broadcast
1 parent d3c9c7c commit 4c11241

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ydb/core/kqp/executer_actor/kqp_executer_impl.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,13 +1319,9 @@ class TKqpExecuterBase : public TActorBootstrapped<TDerived> {
13191319
const auto& input = stage.GetInputs(inputIndex);
13201320

13211321
// Current assumptions:
1322-
// 1. `Broadcast` can not be the 1st stage input unless it's a single input
1323-
// 2. All stage's inputs, except 1st one, must be a `Broadcast` or `UnionAll`
1324-
if (inputIndex == 0) {
1325-
if (stage.InputsSize() > 1) {
1326-
YQL_ENSURE(input.GetTypeCase() != NKqpProto::TKqpPhyConnection::kBroadcast);
1327-
}
1328-
} else {
1322+
// 1. All stage's inputs, except 1st one, must be a `Broadcast` or `UnionAll`
1323+
// 2. 1st Broadcast is handled as UnionAll
1324+
if (inputIndex > 0) {
13291325
switch (input.GetTypeCase()) {
13301326
case NKqpProto::TKqpPhyConnection::kBroadcast:
13311327
case NKqpProto::TKqpPhyConnection::kHashShuffle:

0 commit comments

Comments
 (0)