diff options
author | a-romanov <[email protected]> | 2023-07-07 22:34:24 +0300 |
---|---|---|
committer | a-romanov <[email protected]> | 2023-07-07 22:34:24 +0300 |
commit | 2763473d2f2b32eff3c4e687ef70f3affeded302 (patch) | |
tree | 59558ca7d70847e5e6db56732238e2eabfea194a | |
parent | 639d2249117fe9faa4a089caafa0ac44969570bd (diff) |
YQL-8971 YQL-15555 Left constrains on MapJoinCore grave.
-rw-r--r-- | ydb/library/yql/core/common_opt/yql_co_simple1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/library/yql/core/common_opt/yql_co_simple1.cpp b/ydb/library/yql/core/common_opt/yql_co_simple1.cpp index 4fd179f6f2f..7ebe9dc1101 100644 --- a/ydb/library/yql/core/common_opt/yql_co_simple1.cpp +++ b/ydb/library/yql/core/common_opt/yql_co_simple1.cpp @@ -5785,7 +5785,7 @@ void RegisterCoSimpleCallables1(TCallableOptimizerMap& map) { map["MapJoinCore"] = [](const TExprNode::TPtr& node, TExprContext& ctx, TOptimizeContext& optCtx) { if (const auto& inputToCheck = SkipCallables(node->Head(), SkippableCallables); IsEmptyContainer(inputToCheck) || IsEmpty(inputToCheck, *optCtx.Types)) { YQL_CLOG(DEBUG, Core) << "Empty " << node->Content(); - return ctx.NewCallable(inputToCheck.Pos(), "EmptyIterator", {ExpandType(node->Pos(), *node->GetTypeAnn(), ctx)}); + return KeepConstraints(ctx.NewCallable(inputToCheck.Pos(), "EmptyIterator", {ExpandType(node->Pos(), *node->GetTypeAnn(), ctx)}), *node, ctx); } if (const TCoMapJoinCore mapJoin(node); IsEmptyContainer(mapJoin.RightDict().Ref())) { |