aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora-romanov <Anton.Romanov@ydb.tech>2023-04-28 11:08:01 +0300
committera-romanov <Anton.Romanov@ydb.tech>2023-04-28 11:08:01 +0300
commit308381cdba278cabafdc3fb89f7b73d6f35f8276 (patch)
tree03cd01d6bdf53431fd922ee3c3adcfea8de7f732
parent046eb6808a506256e1e06a3b78af7cda1a228de8 (diff)
downloadydb-308381cdba278cabafdc3fb89f7b73d6f35f8276.tar.gz
YQL-8971 YQL-15555 Keep constraints on empty join.
-rw-r--r--ydb/library/yql/core/common_opt/yql_co_simple1.cpp2
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 a4859a8fb6..063ee68047 100644
--- a/ydb/library/yql/core/common_opt/yql_co_simple1.cpp
+++ b/ydb/library/yql/core/common_opt/yql_co_simple1.cpp
@@ -399,7 +399,7 @@ TExprNode::TPtr HandleEmptyListInJoin(const TExprNode::TPtr& node, TExprContext&
}
if (IsRequiredSide(joinTree, *labels, inputIndex).first) {
- return ctx.NewCallable(node->Pos(), "List", {ExpandType(node->Pos(), *node->GetTypeAnn(), ctx)});
+ return KeepConstraints(ctx.NewCallable(node->Pos(), "List", {ExpandType(node->Pos(), *node->GetTypeAnn(), ctx)}), *node, ctx);
}
}