diff options
author | a-romanov <Anton.Romanov@ydb.tech> | 2023-01-31 19:41:24 +0300 |
---|---|---|
committer | a-romanov <Anton.Romanov@ydb.tech> | 2023-01-31 19:41:24 +0300 |
commit | bc2a47316d20edc6633f873f8a27fc1e7a0c4709 (patch) | |
tree | 91011f33eef0db843e53f275632f286979bcac02 | |
parent | ac25aea7e219c6ce4287ecbdd0c4fee2ffaa1c4a (diff) | |
download | ydb-bc2a47316d20edc6633f873f8a27fc1e7a0c4709.tar.gz |
Temporary disable check sorted constraint by list content.
-rw-r--r-- | ydb/library/yql/core/yql_expr_constraint.cpp | 3 |
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 |