diff options
author | whatsername <whatsername@yandex-team.com> | 2024-09-09 13:35:59 +0300 |
---|---|---|
committer | whatsername <whatsername@yandex-team.com> | 2024-09-09 13:48:11 +0300 |
commit | a0ea1f59fc02a9855dff1c2e92886dbb297b383a (patch) | |
tree | b2be80163a87ff5d5aa40fe20300940209ef8f23 /yt | |
parent | 4de36153bfd57bcb4877b408a4d11138c117fdfb (diff) | |
download | ydb-a0ea1f59fc02a9855dff1c2e92886dbb297b383a.tar.gz |
YT-22580: Fix dynamic table contraints
22e4a06d1b9da36f0a5bb194dc8291d01b87bbae
Diffstat (limited to 'yt')
-rw-r--r-- | yt/yt/client/table_client/schema.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt/yt/client/table_client/schema.cpp b/yt/yt/client/table_client/schema.cpp index 9ac825fe12..70b210966c 100644 --- a/yt/yt/client/table_client/schema.cpp +++ b/yt/yt/client/table_client/schema.cpp @@ -1980,9 +1980,9 @@ void ValidateDynamicTableConstraints(const TTableSchema& schema) for (const auto& column : schema.Columns()) { try { auto logicalType = column.LogicalType(); - if (column.SortOrder() && !column.IsOfV1Type() && - logicalType->GetMetatype() != ELogicalMetatype::List && - logicalType->GetMetatype() != ELogicalMetatype::Tuple) + if (!IsComparable(logicalType) && + column.SortOrder() && + !column.IsOfV1Type(ESimpleLogicalValueType::Any)) { THROW_ERROR_EXCEPTION("Dynamic table cannot have key column of type %Qv", *logicalType); |