diff options
author | a-romanov <Anton.Romanov@ydb.tech> | 2023-01-17 11:04:43 +0300 |
---|---|---|
committer | a-romanov <Anton.Romanov@ydb.tech> | 2023-01-17 11:04:43 +0300 |
commit | 49717afa9cb2ccfbc427f3e6d153bcbebfc4662d (patch) | |
tree | 8e60e0f84cdb5152f4a34999b4fa8bedf36434c2 | |
parent | f6f2819eefe1380756cac4c73f96f5b4bb279e27 (diff) | |
download | ydb-49717afa9cb2ccfbc427f3e6d153bcbebfc4662d.tar.gz |
fix.
-rw-r--r-- | ydb/library/yql/core/yql_expr_constraint.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ydb/library/yql/core/yql_expr_constraint.cpp b/ydb/library/yql/core/yql_expr_constraint.cpp index 67fd91c4fc..1fa853ad74 100644 --- a/ydb/library/yql/core/yql_expr_constraint.cpp +++ b/ydb/library/yql/core/yql_expr_constraint.cpp @@ -745,7 +745,7 @@ private: std::unordered_set<std::string_view> set(size); columns.resize(size, std::make_pair(TConstraintNode::TPathType(), columns.back().second)); auto it = columns.begin(); - for (auto i = 0U; i < columns.size(); ++i) { + for (auto i = 0U; i < size; ++i) { if (const auto child = keySelectorBody.Child(i); child->IsCallable({"Member", "Nth"}) && &child->Head() == &keySelectorArg) { if (set.emplace(child->Tail().Content()).second) it++->first.emplace_back(child->Tail().Content()); @@ -753,6 +753,7 @@ private: it = columns.erase(it); } else { columns.resize(i); + break; } } } else |