Fix result for SimpleAggregateFunction with LowCardinality for AggregatingSortedBlockInputStream.

This commit is contained in:
Nikolai Kochetov 2020-01-10 17:51:30 +03:00
parent 87377431f4
commit d939cef9d1

View File

@ -142,7 +142,7 @@ Block AggregatingSortedBlockInputStream::readImpl()
merged_columns[pos] = (*recursiveTypeConversion(std::move(merged_columns[pos]), from_type, to_type)).mutate();
}
return header.cloneWithColumns(std::move(merged_columns));
return result_header.cloneWithColumns(std::move(merged_columns));
}