This commit is contained in:
alesapin 2020-04-27 18:10:50 +03:00
parent 4c1ac83112
commit 5c6316afbc

View File

@ -42,7 +42,7 @@ NameSet injectRequiredColumns(const MergeTreeData & storage, const MergeTreeData
for (const auto & identifier : identifiers) for (const auto & identifier : identifiers)
{ {
if (storage_columns.has(identifier)) if (storage_columns.hasPhysical(identifier))
{ {
/// ensure each column is added only once /// ensure each column is added only once
if (required_columns.count(identifier) == 0) if (required_columns.count(identifier) == 0)