diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-02-08 12:44:31 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-02-08 13:30:46 +0300 |
commit | 01d287e8a728fca6de124876147f7522a9a7ab00 (patch) | |
tree | e4b356cf5872334157e860ba4545d9ee21230061 | |
parent | 974b46a0e5207f97f71a6d60604f7043badd855a (diff) | |
download | ydb-01d287e8a728fca6de124876147f7522a9a7ab00.tar.gz |
Intermediate changes
-rw-r--r-- | yt/yt/client/table_client/schema.cpp | 3 | ||||
-rw-r--r-- | yt/yt/client/table_client/schema.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/yt/yt/client/table_client/schema.cpp b/yt/yt/client/table_client/schema.cpp index 733d997ffc..7e64844acf 100644 --- a/yt/yt/client/table_client/schema.cpp +++ b/yt/yt/client/table_client/schema.cpp @@ -248,6 +248,7 @@ TColumnSchema& TColumnSchema::SetMaxInlineHunkSize(std::optional<i64> value) TColumnSchema& TColumnSchema::SetLogicalType(TLogicalTypePtr type) { LogicalType_ = std::move(type); + WireType_ = NTableClient::GetWireType(LogicalType_); IsOfV1Type_ = IsV1Type(LogicalType_); std::tie(V1Type_, Required_) = NTableClient::CastToV1Type(LogicalType_); return *this; @@ -261,7 +262,7 @@ TColumnSchema& TColumnSchema::SetSimpleLogicalType(ESimpleLogicalValueType type) EValueType TColumnSchema::GetWireType() const { - return NTableClient::GetWireType(LogicalType_); + return WireType_; } i64 TColumnSchema::GetMemoryUsage() const diff --git a/yt/yt/client/table_client/schema.h b/yt/yt/client/table_client/schema.h index da539ddcb7..0bf4b345d5 100644 --- a/yt/yt/client/table_client/schema.h +++ b/yt/yt/client/table_client/schema.h @@ -197,6 +197,7 @@ public: private: ESimpleLogicalValueType V1Type_; + EValueType WireType_; bool IsOfV1Type_; }; |