Skip to content

Commit 59d5dd6

Browse files
authored
PushLeftStage fix (#7270)
1 parent b1f9ae2 commit 59d5dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/kqp/opt/physical/kqp_opt_phy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ class TKqpPhysicalOptTransformer : public TOptimizeTransformerBase {
419419
{
420420
// TODO: Allow push to left stage for data queries.
421421
// It is now possible as we don't use datashard transactions for reads in data queries.
422-
bool pushLeftStage = !KqpCtx.IsDataQuery() && AllowFuseJoinInputs(node);
422+
bool pushLeftStage = (KqpCtx.IsScanQuery() || KqpCtx.Config->EnableKqpDataQueryStreamLookup) && AllowFuseJoinInputs(node);
423423
TExprBase output = DqBuildJoin(node, ctx, optCtx, *getParents(), IsGlobal,
424424
pushLeftStage, KqpCtx.Config->GetHashJoinMode(), false
425425
);

0 commit comments

Comments
 (0)