aboutsummaryrefslogtreecommitdiffstats
path: root/yt
diff options
context:
space:
mode:
authorwhatsername <whatsername@yandex-team.com>2024-09-09 13:35:59 +0300
committerwhatsername <whatsername@yandex-team.com>2024-09-09 13:48:11 +0300
commita0ea1f59fc02a9855dff1c2e92886dbb297b383a (patch)
treeb2be80163a87ff5d5aa40fe20300940209ef8f23 /yt
parent4de36153bfd57bcb4877b408a4d11138c117fdfb (diff)
downloadydb-a0ea1f59fc02a9855dff1c2e92886dbb297b383a.tar.gz
YT-22580: Fix dynamic table contraints
22e4a06d1b9da36f0a5bb194dc8291d01b87bbae
Diffstat (limited to 'yt')
-rw-r--r--yt/yt/client/table_client/schema.cpp6
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);