mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Update FillingTransform.cpp
use range-based for loop
This commit is contained in:
parent
eb7474e73a
commit
481ee8aad5
@ -174,15 +174,15 @@ FillingTransform::FillingTransform(
|
||||
}
|
||||
}
|
||||
|
||||
for (size_t i = 0, size = interpolate_description.size(); i < size; ++i)
|
||||
for (const auto & descr : interpolate_description)
|
||||
{
|
||||
size_t block_position = header_.getPositionByName(interpolate_description[i].column.name);
|
||||
size_t block_position = header_.getPositionByName(descr.column.name);
|
||||
is_fill_column[block_position] = true;
|
||||
fill_column_positions.push_back(block_position);
|
||||
|
||||
/// Check column-expression compatibility
|
||||
auto column = interpolate_description[i].column;
|
||||
auto exp_type = interpolate_description[i].actions->getActionsDAG().getResultColumns()[0].type;
|
||||
auto column = descr.column;
|
||||
auto exp_type = descr.actions->getActionsDAG().getResultColumns()[0].type;
|
||||
auto exp_column = exp_type->createColumn();
|
||||
exp_column->insertDefault();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user