aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora-romanov <Anton.Romanov@ydb.tech>2023-01-31 19:41:24 +0300
committera-romanov <Anton.Romanov@ydb.tech>2023-01-31 19:41:24 +0300
commitbc2a47316d20edc6633f873f8a27fc1e7a0c4709 (patch)
tree91011f33eef0db843e53f275632f286979bcac02
parentac25aea7e219c6ce4287ecbdd0c4fee2ffaa1c4a (diff)
downloadydb-bc2a47316d20edc6633f873f8a27fc1e7a0c4709.tar.gz
Temporary disable check sorted constraint by list content.
-rw-r--r--ydb/library/yql/core/yql_expr_constraint.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ydb/library/yql/core/yql_expr_constraint.cpp b/ydb/library/yql/core/yql_expr_constraint.cpp
index 12d209fbd0a..fa652bc3737 100644
--- a/ydb/library/yql/core/yql_expr_constraint.cpp
+++ b/ydb/library/yql/core/yql_expr_constraint.cpp
@@ -3091,6 +3091,9 @@ private:
if (!Types.DisableConstraintCheck.contains(expectedConstr->GetName())) {
auto newConstr = input.GetConstraint(expectedConstr->GetName());
if (!newConstr) {
+ if (const auto sort = dynamic_cast<const TSortedConstraintNode*>(expectedConstr))
+ if (const auto& constent = sort->GetContent(); constent.size() == 1U && constent.front().first.size() == 1U && constent.front().first.front().empty())
+ continue;
if (expectedConstr->GetName() == TMultiConstraintNode::Name()
|| expectedConstr->GetName() == TPassthroughConstraintNode::Name()) {
// Constraint Multi(0:{Empty},1:{Empty}, ..., N:{Empty}) can be reduced to Empty