aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuryalekseev <yuryalekseev@yandex-team.com>2024-07-17 15:54:12 +0300
committeryuryalekseev <yuryalekseev@yandex-team.com>2024-07-17 16:03:44 +0300
commitd59b288b13385d748ec8d9087c7c2e4ebfd36b1e (patch)
tree64da686734167c59ba50cb953b0ed9f2de65f04f
parent11016d1044d05e38dc3e9a5f4136be80af687aa1 (diff)
downloadydb-d59b288b13385d748ec8d9087c7c2e4ebfd36b1e.tar.gz
YT-20113: Update TTableSchema::IsCGComparatorApplicable().
3a62a973e944a7a7562754a749d1126b536b4e90
-rw-r--r--yt/yt/client/table_client/schema.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/yt/yt/client/table_client/schema.cpp b/yt/yt/client/table_client/schema.cpp
index afe1e55b07..747ce5feb1 100644
--- a/yt/yt/client/table_client/schema.cpp
+++ b/yt/yt/client/table_client/schema.cpp
@@ -751,10 +751,7 @@ bool TTableSchema::IsEmpty() const
bool TTableSchema::IsCGComparatorApplicable() const
{
- auto keyTypes = GetKeyColumnTypes();
- return std::none_of(keyTypes.begin(), keyTypes.end(), [] (auto type) {
- return type == EValueType::Any;
- });
+ return GetKeyColumnCount() <= MaxKeyColumnCountInDynamicTable;
}
std::optional<int> TTableSchema::GetTtlColumnIndex() const