diff --git a/ydb/core/kqp/opt/physical/kqp_opt_phy.cpp b/ydb/core/kqp/opt/physical/kqp_opt_phy.cpp index c125e4394829..a4cfee447263 100644 --- a/ydb/core/kqp/opt/physical/kqp_opt_phy.cpp +++ b/ydb/core/kqp/opt/physical/kqp_opt_phy.cpp @@ -419,7 +419,7 @@ class TKqpPhysicalOptTransformer : public TOptimizeTransformerBase { { // TODO: Allow push to left stage for data queries. // It is now possible as we don't use datashard transactions for reads in data queries. - bool pushLeftStage = (KqpCtx.IsScanQuery() || KqpCtx.Config->EnableKqpScanQueryStreamIdxLookupJoin) && AllowFuseJoinInputs(node); + bool pushLeftStage = (KqpCtx.IsScanQuery() || KqpCtx.Config->EnableKqpDataQueryStreamLookup) && AllowFuseJoinInputs(node); TExprBase output = DqBuildJoin(node, ctx, optCtx, *getParents(), IsGlobal, pushLeftStage, KqpCtx.Config->GetHashJoinMode(), false );