mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
(fix) https://github.com/ClickHouse/ClickHouse/issues/66646 do not run executable table storage queries in single threaded pipeline executor
This commit is contained in:
parent
07de943eca
commit
24c03a20e3
@ -667,7 +667,9 @@ Pipe ShellCommandSourceCoordinator::createPipe(
|
||||
input_pipes[i].addTransform(std::move(transform));
|
||||
}
|
||||
|
||||
auto num_streams = input_pipes[i].maxParallelStreams();
|
||||
auto pipeline = std::make_shared<QueryPipeline>(std::move(input_pipes[i]));
|
||||
pipeline->setNumThreads(num_streams);
|
||||
auto out = context->getOutputFormat(configuration.format, *timeout_write_buffer, materializeBlock(pipeline->getHeader()));
|
||||
out->setAutoFlush();
|
||||
pipeline->complete(std::move(out));
|
||||
|
Loading…
Reference in New Issue
Block a user