mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
Processors: experimental [#CLICKHOUSE-2948]
This commit is contained in:
parent
7dfc0a4c6c
commit
969c0d9fc1
@ -280,7 +280,7 @@ public:
|
||||
enum class Status
|
||||
{
|
||||
/// Processor needs some data at its inputs to proceed.
|
||||
/// You need to run another processor to generate required input and proceed.
|
||||
/// You need to run another processor to generate required input before proceed.
|
||||
NeedData,
|
||||
|
||||
/// Processor cannot proceed because output port is full.
|
||||
|
@ -50,9 +50,6 @@ public:
|
||||
|
||||
Status prepare() override
|
||||
{
|
||||
if (output.hasData())
|
||||
return Status::PortFull;
|
||||
|
||||
if (!output.isNeeded())
|
||||
return Status::Unneeded;
|
||||
|
||||
@ -62,6 +59,9 @@ public:
|
||||
if (!current_block)
|
||||
return Status::Async;
|
||||
|
||||
if (output.hasData())
|
||||
return Status::PortFull;
|
||||
|
||||
return Status::Ready;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user