diff options
author | ermolovd <ermolovd@yandex-team.com> | 2024-09-19 21:14:13 +0300 |
---|---|---|
committer | ermolovd <ermolovd@yandex-team.com> | 2024-09-19 21:25:01 +0300 |
commit | 1c463c12c42bc4a7071b8a1fc530e5b87d3dca9c (patch) | |
tree | 5ec1cd1d68ba79f7bbe31f5259e766dcb3bb4ec3 /yt/cpp/mapreduce/interface/common.h | |
parent | 5ce9b712aa7fd8eacab0c51a076f9b8cacad3ca3 (diff) | |
download | ydb-1c463c12c42bc4a7071b8a1fc530e5b87d3dca9c.tar.gz |
Fix: reset RawTypeV3, when Type is set (and vice versa)
commit_hash:af63b4f5a0c2db692a0224330b79c5088c6982dc
Diffstat (limited to 'yt/cpp/mapreduce/interface/common.h')
-rw-r--r-- | yt/cpp/mapreduce/interface/common.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/yt/cpp/mapreduce/interface/common.h b/yt/cpp/mapreduce/interface/common.h index 557f4ea6c4..d8365c32c0 100644 --- a/yt/cpp/mapreduce/interface/common.h +++ b/yt/cpp/mapreduce/interface/common.h @@ -649,11 +649,6 @@ public: NTi::TTypePtr TypeV3() const; /// @} - /// - /// @brief Raw yson representation of column type - /// @deprecated Prefer to use `TypeV3` methods. - FLUENT_FIELD_OPTION_ENCAPSULATED(TNode, RawTypeV3); - /// Column sort order FLUENT_FIELD_OPTION_ENCAPSULATED(ESortOrder, SortOrder); @@ -696,10 +691,21 @@ public: TColumnSchema Type(EValueType type, bool required) &&; /// @} + /// + /// @{ + /// + /// @brief Raw yson representation of column type + /// @deprecated Prefer to use `TypeV3` methods. + const TMaybe<TNode>& RawTypeV3() const; + TColumnSchema& RawTypeV3(TNode rawTypeV3)&; + TColumnSchema RawTypeV3(TNode rawTypeV3)&&; + /// @} + + private: friend void Deserialize(TColumnSchema& columnSchema, const TNode& node); NTi::TTypePtr TypeV3_; - bool Required_ = false; + TMaybe<TNode> RawTypeV3_; }; /// Equality check checks all fields of column schema. |