Browse Source

Resolve Sequoia symlinks pr issues
commit_hash:a5286241bbc75c5b741b949e85be085dee8c9c3d

danilalexeev 5 months ago
parent
commit
25863a0170
2 changed files with 10 additions and 0 deletions
  1. 7 0
      yt/yt/client/object_client/helpers.cpp
  2. 3 0
      yt/yt/client/object_client/helpers.h

+ 7 - 0
yt/yt/client/object_client/helpers.cpp

@@ -21,6 +21,13 @@ bool IsScalarType(EObjectType type)
         type == EObjectType::BooleanNode;
 }
 
+bool IsSequoiaNode(NObjectClient::EObjectType type)
+{
+    return
+        type == EObjectType::SequoiaMapNode ||
+        type == EObjectType::SequoiaLink;
+}
+
 bool IsVersionedType(EObjectType type)
 {
     return

+ 3 - 0
yt/yt/client/object_client/helpers.h

@@ -17,6 +17,9 @@ namespace NYT::NObjectClient {
 //! Function for temporary use: to gradually allow types supported in Sequoia.
 bool IsScalarType(NObjectClient::EObjectType type);
 
+//! Checks if the given type is a Sequoia node.
+bool IsSequoiaNode(NObjectClient::EObjectType type);
+
 //! Creates the YPath pointing to an object with a given #id.
 NYPath::TYPath FromObjectId(TObjectId id);