mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +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
|
try
|
||||||
{
|
{
|
||||||
|
for (auto & input : inputs)
|
||||||
|
input->readPrefix();
|
||||||
loop(thread_num);
|
loop(thread_num);
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
@ -205,6 +207,7 @@ private:
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
additional_input_at_end->readPrefix();
|
||||||
while (Block block = additional_input_at_end->read())
|
while (Block block = additional_input_at_end->read())
|
||||||
publishPayload(additional_input_at_end, block, thread_num);
|
publishPayload(additional_input_at_end, block, thread_num);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user