From eee39b7bd1a47b9d7487bfd6f5f1b5d803a5698d Mon Sep 17 00:00:00 2001 From: Nikita Taranov Date: Sat, 18 Feb 2023 14:30:49 +0000 Subject: [PATCH] bring back lost lines --- src/Processors/QueryPlan/ReadFromMergeTree.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Processors/QueryPlan/ReadFromMergeTree.cpp b/src/Processors/QueryPlan/ReadFromMergeTree.cpp index 7365b697b6e..25f0f3ee171 100644 --- a/src/Processors/QueryPlan/ReadFromMergeTree.cpp +++ b/src/Processors/QueryPlan/ReadFromMergeTree.cpp @@ -1507,6 +1507,8 @@ Pipe ReadFromMergeTree::spreadMarkRanges( std::vector add_columns = metadata_for_reading->getColumnsRequiredForSortingKey(); column_names_to_read.insert(column_names_to_read.end(), add_columns.begin(), add_columns.end()); + if (!data.merging_params.is_deleted_column.empty()) + column_names_to_read.push_back(data.merging_params.is_deleted_column); if (!data.merging_params.sign_column.empty()) column_names_to_read.push_back(data.merging_params.sign_column); if (!data.merging_params.version_column.empty())