aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora-romanov <Anton.Romanov@ydb.tech>2022-11-07 15:27:58 +0300
committera-romanov <Anton.Romanov@ydb.tech>2022-11-07 15:27:58 +0300
commit61143d004cc8a41d5ee751902baf8b47936aa910 (patch)
tree61c0555ff845af540e4415ee891d20dc5169a687
parent8fccbee893cdfab0e7da20ec6cd32ca199a7326b (diff)
downloadydb-61143d004cc8a41d5ee751902baf8b47936aa910.tar.gz
A little fix before many changes.
-rw-r--r--ydb/library/yql/core/yql_expr_constraint.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/ydb/library/yql/core/yql_expr_constraint.cpp b/ydb/library/yql/core/yql_expr_constraint.cpp
index 7d3a6b23a24..7d4105cb610 100644
--- a/ydb/library/yql/core/yql_expr_constraint.cpp
+++ b/ydb/library/yql/core/yql_expr_constraint.cpp
@@ -1937,12 +1937,6 @@ private:
}
TStatus CondenseWrap(const TExprNode::TPtr& input, TExprNode::TPtr& output, TExprContext& ctx) const {
- const TStructExprType* inItemType = GetNonEmptyStructItemType(*input->Head().GetTypeAnn());
- const TStructExprType* outItemType = GetNonEmptyStructItemType(*input->GetTypeAnn());
- if (!inItemType) {
- return InheriteEmptyFromInput(input, output, ctx);
- }
-
const auto inputPassthrough = input->Head().GetConstraint<TPassthroughConstraintNode>();
if (input->Child(1)->IsLambda()) {
TConstraintNode::TListType argConstraints;
@@ -1993,7 +1987,7 @@ private:
}
if (const auto switchLambda = input->Child(2); switchLambda->Tail().IsCallable(TCoBool::CallableName()) && IsFalse(switchLambda->Tail().Head().Content())) {
- if (outItemType) {
+ if (const auto outItemType = GetNonEmptyStructItemType(*input->GetTypeAnn())) {
input->AddConstraint(ctx.MakeConstraint<TUniqueConstraintNode>(*outItemType));
}
}