mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
Fix bug
This commit is contained in:
parent
4c1ac83112
commit
5c6316afbc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user