diff options
author | a-romanov <Anton.Romanov@ydb.tech> | 2023-05-19 11:14:38 +0300 |
---|---|---|
committer | a-romanov <Anton.Romanov@ydb.tech> | 2023-05-19 11:14:38 +0300 |
commit | 11defeb73cb209527c7ab17b1e128a48b40c03e8 (patch) | |
tree | 40ce3fd490f9dde43b89e628064c4856fc117899 | |
parent | 9012b2dbf44126a3499a706b40a1378782de163b (diff) | |
download | ydb-11defeb73cb209527c7ab17b1e128a48b40c03e8.tar.gz |
Hotfix for too much unique sets.
-rw-r--r-- | ydb/library/yql/ast/yql_constraint.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ydb/library/yql/ast/yql_constraint.cpp b/ydb/library/yql/ast/yql_constraint.cpp index 355cfa35801..5fdef54d18f 100644 --- a/ydb/library/yql/ast/yql_constraint.cpp +++ b/ydb/library/yql/ast/yql_constraint.cpp @@ -900,6 +900,10 @@ TUniqueConstraintNodeBase<Distinct>::RenameFields(TExprContext& ctx, const TPath newSets.back().insert_unique(newPath); } } + + // TODO: Fix it by use sets of duplicated columns. + if (newSets.size() > 42U) + return nullptr; } if (set.size() == newSets.front().size()) sets.insert_unique(newSets.cbegin(), newSets.cend()); |