Update FillingTransform.cpp

use range-based for loop
This commit is contained in:
Yakov Olkhovskiy 2022-03-19 12:17:56 -04:00 committed by GitHub
parent eb7474e73a
commit 481ee8aad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();