mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
fix build
This commit is contained in:
parent
6b835522b3
commit
ef9bfbd85a
@ -630,10 +630,7 @@ BlockIO InterpreterInsertQuery::execute()
|
||||
|
||||
pipeline.addSimpleTransform([&](const Block & in_header) -> ProcessorPtr
|
||||
{
|
||||
return std::make_shared<ApplySquashingTransform>(
|
||||
in_header,
|
||||
table_prefers_large_blocks ? settings.min_insert_block_size_rows : settings.max_block_size,
|
||||
table_prefers_large_blocks ? settings.min_insert_block_size_bytes : 0ULL);
|
||||
return std::make_shared<ApplySquashingTransform>(in_header);
|
||||
});
|
||||
}
|
||||
else
|
||||
@ -699,10 +696,7 @@ BlockIO InterpreterInsertQuery::execute()
|
||||
|
||||
if (settings.allow_insert_threads_reduction_optimizaion)
|
||||
{
|
||||
auto squashing = std::make_shared<ApplySquashingTransform>(
|
||||
chain.getInputHeader(),
|
||||
table_prefers_large_blocks ? settings.min_insert_block_size_rows : settings.max_block_size,
|
||||
table_prefers_large_blocks ? settings.min_insert_block_size_bytes : 0ULL);
|
||||
auto squashing = std::make_shared<ApplySquashingTransform>(chain.getInputHeader());
|
||||
|
||||
chain.addSource(std::move(squashing));
|
||||
|
||||
|
@ -374,10 +374,7 @@ std::optional<Chain> generateViewChain(
|
||||
|
||||
if (settings.allow_insert_threads_reduction_optimizaion)
|
||||
{
|
||||
out.addSource(std::make_shared<ApplySquashingTransform>(
|
||||
out.getInputHeader(),
|
||||
table_prefers_large_blocks ? settings.min_insert_block_size_rows : settings.max_block_size,
|
||||
table_prefers_large_blocks ? settings.min_insert_block_size_bytes : 0ULL));
|
||||
out.addSource(std::make_shared<ApplySquashingTransform>(out.getInputHeader()));
|
||||
|
||||
out.addSource(std::make_shared<PlanSquashingTransform>(
|
||||
out.getInputHeader(),
|
||||
@ -643,10 +640,7 @@ static QueryPipeline process(Block block, ViewRuntimeData & view, const ViewsDat
|
||||
context->getSettingsRef().min_insert_block_size_rows,
|
||||
context->getSettingsRef().min_insert_block_size_bytes,
|
||||
pipeline.getNumStreams()));
|
||||
pipeline.addTransform(std::make_shared<ApplySquashingTransform>(
|
||||
pipeline.getHeader(),
|
||||
context->getSettingsRef().min_insert_block_size_rows,
|
||||
context->getSettingsRef().min_insert_block_size_bytes));
|
||||
pipeline.addTransform(std::make_shared<ApplySquashingTransform>(pipeline.getHeader()));
|
||||
|
||||
auto converting = ActionsDAG::makeConvertingActions(
|
||||
pipeline.getHeader().getColumnsWithTypeAndName(),
|
||||
|
@ -314,7 +314,7 @@ Block ProjectionDescription::calculate(const Block & block, ContextPtr context)
|
||||
if (mut_context->getSettings().allow_insert_threads_reduction_optimizaion)
|
||||
{
|
||||
builder.addTransform(std::make_shared<PlanSquashingTransform>(builder.getHeader(), block.rows(), 0, 1));
|
||||
builder.addTransform(std::make_shared<ApplySquashingTransform>(builder.getHeader(), block.rows(), 0));
|
||||
builder.addTransform(std::make_shared<ApplySquashingTransform>(builder.getHeader()));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user