diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-02-08 12:44:31 +0300 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-02-09 19:18:53 +0300 |
commit | 557ddae9ccd5bd372744082df3109779404b8a73 (patch) | |
tree | ff841694fb0958fb2431048b2867f5a177a4f6de | |
parent | 0cffe4e1b7a558e696fe88f520cc636f8ae81bfe (diff) | |
download | ydb-557ddae9ccd5bd372744082df3109779404b8a73.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_; }; |