mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
fix concurrent select from system.parts_columns
This commit is contained in:
parent
927b5a432e
commit
60ab3294b1
@ -63,7 +63,7 @@ void StorageSystemPartsColumns::processNextStorage(MutableColumns & columns, con
|
|||||||
|
|
||||||
NamesAndTypesList columns_list = info.storage->getColumnsList();
|
NamesAndTypesList columns_list = info.storage->getColumnsList();
|
||||||
columns_list.insert(std::end(columns_list), std::begin(info.storage->alias_columns), std::end(info.storage->alias_columns));
|
columns_list.insert(std::end(columns_list), std::begin(info.storage->alias_columns), std::end(info.storage->alias_columns));
|
||||||
column_defaults = info.storage->column_defaults;
|
const auto & column_defaults = info.storage->column_defaults;
|
||||||
std::unordered_map<String, ColumnInfo> columns_info;
|
std::unordered_map<String, ColumnInfo> columns_info;
|
||||||
|
|
||||||
for (const auto & column : columns_list)
|
for (const auto & column : columns_list)
|
||||||
|
Loading…
Reference in New Issue
Block a user