diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-11-09 11:29:49 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-11-09 11:43:30 +0300 |
commit | 7b700ab4a13b745726d8f34d99b393ba1b5e7948 (patch) | |
tree | 025ceab6276e62db9efcbe02d67b9aa103ec9735 | |
parent | af98913e103d44d6cd21ba7a4279beb367a4264a (diff) | |
download | ydb-7b700ab4a13b745726d8f34d99b393ba1b5e7948.tar.gz |
Intermediate changes
-rw-r--r-- | yt/yt/library/formats/web_json_writer.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/yt/yt/library/formats/web_json_writer.cpp b/yt/yt/library/formats/web_json_writer.cpp index 9233f55c6f..0539ed6cec 100644 --- a/yt/yt/library/formats/web_json_writer.cpp +++ b/yt/yt/library/formats/web_json_writer.cpp @@ -60,6 +60,11 @@ public: return AcceptByMaxCount(columnId); } + bool IsRequestedColumnName(TStringBuf columnName) + { + return Names_ && AcceptByNames(columnName); + } + private: const int MaxSelectedColumnCount_; std::optional<THashSet<TString>> Names_; @@ -611,7 +616,8 @@ TFuture<void> TWriterForWebJson<TValueWriter>::Flush() template <typename TValueWriter> bool TWriterForWebJson<TValueWriter>::TryRegisterColumn(ui16 columnId, TStringBuf columnName) { - if (SkipSystemColumn(columnName)) { + // Don't skip system column if it was requested. + if (SkipSystemColumn(columnName) && !ColumnFilter_.IsRequestedColumnName(columnName)) { return false; } |