From 5c6316afbc7dd072e554819da36132d33d301754 Mon Sep 17 00:00:00 2001 From: alesapin Date: Mon, 27 Apr 2020 18:10:50 +0300 Subject: [PATCH] Fix bug --- src/Storages/MergeTree/MergeTreeBlockReadUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storages/MergeTree/MergeTreeBlockReadUtils.cpp b/src/Storages/MergeTree/MergeTreeBlockReadUtils.cpp index 9b8deb308b1..dd6700fd675 100644 --- a/src/Storages/MergeTree/MergeTreeBlockReadUtils.cpp +++ b/src/Storages/MergeTree/MergeTreeBlockReadUtils.cpp @@ -42,7 +42,7 @@ NameSet injectRequiredColumns(const MergeTreeData & storage, const MergeTreeData for (const auto & identifier : identifiers) { - if (storage_columns.has(identifier)) + if (storage_columns.hasPhysical(identifier)) { /// ensure each column is added only once if (required_columns.count(identifier) == 0)