aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2024-11-06 00:13:15 +0300
committerbabenko <babenko@yandex-team.com>2024-11-06 00:23:43 +0300
commit79fd6cba987b1fc936e37b00fa3f3965d747c2a8 (patch)
treed09be86113e1386c086beb939056ef8496b4fea5
parenta2ef9486e8206b470a4fa9dfe6dad811912f20f5 (diff)
downloadydb-79fd6cba987b1fc936e37b00fa3f3965d747c2a8.tar.gz
Cosmetics: CodeKeyCannotBeNan -> CodeKeyCannotBeNaN
commit_hash:538657f4deee1537625022d71a8beb2485f0ab05
-rw-r--r--yt/yt/client/table_client/public.h2
-rw-r--r--yt/yt/client/table_client/unversioned_row.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/yt/yt/client/table_client/public.h b/yt/yt/client/table_client/public.h
index 1c795adb329..e1ae0481d4a 100644
--- a/yt/yt/client/table_client/public.h
+++ b/yt/yt/client/table_client/public.h
@@ -182,7 +182,7 @@ YT_DEFINE_ERROR_ENUM(
((DuplicateColumnInSchema) (322))
((MissingRequiredColumnInSchema) (323))
((IncomparableComplexValues) (324))
- ((KeyCannotBeNan) (325))
+ ((KeyCannotBeNaN) (325))
((StringLikeValueLengthLimitExceeded)(326))
((NameTableUpdateFailed) (327))
((InvalidTableChunkFormat) (328))
diff --git a/yt/yt/client/table_client/unversioned_row.cpp b/yt/yt/client/table_client/unversioned_row.cpp
index bcddb0a061d..4d0f3313f64 100644
--- a/yt/yt/client/table_client/unversioned_row.cpp
+++ b/yt/yt/client/table_client/unversioned_row.cpp
@@ -728,7 +728,7 @@ void ValidateDynamicValue(const TUnversionedValue& value, bool isKey)
case EValueType::Double:
if (isKey && std::isnan(value.Data.Double)) {
THROW_ERROR_EXCEPTION(
- NTableClient::EErrorCode::KeyCannotBeNan,
+ NTableClient::EErrorCode::KeyCannotBeNaN,
"Key of type \"double\" cannot be NaN");
}
break;