mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Propagate readPrefix in ParallelInputsProcessor
UnionBlockInputStream relies on ParallelInputsProcessor to do stream preparation in parallel, which seems to be absent. This patch fixes it.
This commit is contained in:
parent
31fc79b809
commit
22e9772593
@ -183,6 +183,8 @@ private:
|
||||
|
||||
try
|
||||
{
|
||||
for (auto & input : inputs)
|
||||
input->readPrefix();
|
||||
loop(thread_num);
|
||||
}
|
||||
catch (...)
|
||||
@ -205,6 +207,7 @@ private:
|
||||
{
|
||||
try
|
||||
{
|
||||
additional_input_at_end->readPrefix();
|
||||
while (Block block = additional_input_at_end->read())
|
||||
publishPayload(additional_input_at_end, block, thread_num);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user