diff options
author | cherepashka <cherepashka@yandex-team.com> | 2024-06-22 14:16:13 +0300 |
---|---|---|
committer | cherepashka <cherepashka@yandex-team.com> | 2024-06-22 14:28:03 +0300 |
commit | 7f84e69a2db386cca15e6fc1dafeb1395c516463 (patch) | |
tree | abd82a8bc7b16b772d83ec03780479dcff85f69c | |
parent | b41b2afa94a8d2a34ca61d8add00730c1f09d110 (diff) | |
download | ydb-7f84e69a2db386cca15e6fc1dafeb1395c516463.tar.gz |
YT-18064: Inherit chunk_merger_mode after copy
e16d78c59eadee78797ff7687b140bac4a1ab9a7
-rw-r--r-- | yt/yt/client/object_client/helpers.cpp | 5 | ||||
-rw-r--r-- | yt/yt/client/object_client/helpers.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/yt/yt/client/object_client/helpers.cpp b/yt/yt/client/object_client/helpers.cpp index f705f7030c..257f5e36ed 100644 --- a/yt/yt/client/object_client/helpers.cpp +++ b/yt/yt/client/object_client/helpers.cpp @@ -285,6 +285,11 @@ bool IsUploadTransactionType(EObjectType type) type == EObjectType::UploadNestedTransaction; } +bool IsCompositeNodeType(EObjectType type) +{ + return type == EObjectType::MapNode || type == EObjectType::ListNode; +} + bool HasSchema(EObjectType type) { if (type == EObjectType::Master) { diff --git a/yt/yt/client/object_client/helpers.h b/yt/yt/client/object_client/helpers.h index d3077bec60..68dde3d1cc 100644 --- a/yt/yt/client/object_client/helpers.h +++ b/yt/yt/client/object_client/helpers.h @@ -78,6 +78,9 @@ bool IsSystemTransactionType(EObjectType type); //! Checks if the given type if an upload transaction. bool IsUploadTransactionType(EObjectType type); +//! Checks if node with the given type can contain other nodes. +bool IsCompositeNodeType(EObjectType type); + //! Extracts the type component from #id. EObjectType TypeFromId(TObjectId id); |