diff options
author | a-romanov <Anton.Romanov@ydb.tech> | 2023-08-29 15:06:10 +0300 |
---|---|---|
committer | a-romanov <Anton.Romanov@ydb.tech> | 2023-08-29 18:27:14 +0300 |
commit | b906b72cdf260008a312be3b4717a4593dc26786 (patch) | |
tree | 0b0f4d0c05590d1e6e4fb8c29e34328da313f910 | |
parent | af5c0aa11929ba398b74fbb4961004ef9ed18d86 (diff) | |
download | ydb-b906b72cdf260008a312be3b4717a4593dc26786.tar.gz |
Constraints of FlatListIf a little fix.
-rw-r--r-- | ydb/library/yql/core/common_opt/yql_co_simple1.cpp | 4 |
1 files changed, 2 insertions, 2 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 be6d4eb9e02..e9ab503794a 100644 --- a/ydb/library/yql/core/common_opt/yql_co_simple1.cpp +++ b/ydb/library/yql/core/common_opt/yql_co_simple1.cpp @@ -981,8 +981,8 @@ TExprNode::TPtr OptimizeFlatContainerIf(const TExprNode::TPtr& node, TExprContex if (1U == nodeToCheck.ChildrenSize() && nodeToCheck.IsCallable(IsList ? "AsList" : "Just")) { YQL_CLOG(DEBUG, Core) << node->Content() << " with " << nodeToCheck.Content(); auto res = ctx.NewCallable(node->Pos(), IsList ? "ListIf" : "OptionalIf", {node->HeadPtr(), nodeToCheck.HeadPtr()}); - if (IsList) { - res = KeepSortedConstraint(res, node->GetConstraint<TSortedConstraintNode>(), ctx); + if constexpr (IsList) { + res = KeepConstraints(std::move(res), *node, ctx); } return res; } |