mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
fix block number columns
This commit is contained in:
parent
7047147db5
commit
6ab029b465
@ -58,10 +58,10 @@ static Statistics getStatisticsForColumns(
|
|||||||
|
|
||||||
for (const auto & column : columns_to_read)
|
for (const auto & column : columns_to_read)
|
||||||
{
|
{
|
||||||
const auto & desc = all_columns.get(column.name);
|
const auto * desc = all_columns.tryGet(column.name);
|
||||||
if (desc.stat)
|
if (desc && desc->stat)
|
||||||
{
|
{
|
||||||
auto statistic = MergeTreeStatisticsFactory::instance().get(*desc.stat);
|
auto statistic = MergeTreeStatisticsFactory::instance().get(*desc->stat);
|
||||||
statistics.push_back(std::move(statistic));
|
statistics.push_back(std::move(statistic));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user