aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-11-09 11:29:49 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-11-09 11:43:30 +0300
commit7b700ab4a13b745726d8f34d99b393ba1b5e7948 (patch)
tree025ceab6276e62db9efcbe02d67b9aa103ec9735
parentaf98913e103d44d6cd21ba7a4279beb367a4264a (diff)
downloadydb-7b700ab4a13b745726d8f34d99b393ba1b5e7948.tar.gz
Intermediate changes
-rw-r--r--yt/yt/library/formats/web_json_writer.cpp8
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;
}