mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Try fix Pipeline stuck
This commit is contained in:
parent
da6bfc2cfb
commit
1ebab1dc48
@ -78,11 +78,16 @@ IProcessor::Status DelayedPortsProcessor::prepare(const PortNumbers & updated_in
|
||||
bool skip_delayed = (num_finished + num_delayed) < port_pairs.size();
|
||||
bool need_data = false;
|
||||
|
||||
if (!updated_outputs.empty())
|
||||
if (!are_inputs_initialized && !updated_outputs.empty())
|
||||
{
|
||||
/// Activate inputs with no output.
|
||||
for (const auto & pair : port_pairs)
|
||||
if (!pair.output_port)
|
||||
pair.input_port->setNeeded();
|
||||
|
||||
are_inputs_initialized = true;
|
||||
}
|
||||
|
||||
for (const auto & output_number : updated_outputs)
|
||||
{
|
||||
auto pair_num = output_to_pair[output_number];
|
||||
|
@ -32,6 +32,7 @@ private:
|
||||
size_t num_finished = 0;
|
||||
|
||||
std::vector<size_t> output_to_pair;
|
||||
bool are_inputs_initialized = false;
|
||||
|
||||
bool processPair(PortsPair & pair);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user