Merge branch 'balancing_transform' of https://github.com/yariks5s/ClickHouse into balancing_transform

This commit is contained in:
yariks5s 2024-05-30 16:51:12 +00:00
commit da1af2b357
2 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ namespace ErrorCodes
} }
ApplySquashing::ApplySquashing(Block header_) ApplySquashing::ApplySquashing(Block header_)
: header(std::move(header_)) : header(header_)
{ {
} }

View File

@ -1286,6 +1286,7 @@ void PartMergerWriter::prepare()
for (size_t i = 0, size = ctx->projections_to_build.size(); i < size; ++i) for (size_t i = 0, size = ctx->projections_to_build.size(); i < size; ++i)
{ {
PlanSquashing plan_squashing(ctx->updated_header, settings.min_insert_block_size_rows, settings.min_insert_block_size_bytes);
// We split the materialization into multiple stages similar to the process of INSERT SELECT query. // We split the materialization into multiple stages similar to the process of INSERT SELECT query.
projection_squash_plannings.emplace_back(ctx->updated_header, settings.min_insert_block_size_rows, settings.min_insert_block_size_bytes); projection_squash_plannings.emplace_back(ctx->updated_header, settings.min_insert_block_size_rows, settings.min_insert_block_size_bytes);
projection_squashes.emplace_back(ctx->updated_header); projection_squashes.emplace_back(ctx->updated_header);