mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
Update SinkToStorage.cpp
This commit is contained in:
parent
aea1871755
commit
5c220d62b3
@ -71,7 +71,12 @@ IProcessor::Status ExceptionKeepingTransform::prepare()
|
||||
return Status::PortFull;
|
||||
}
|
||||
|
||||
ready_input = true;
|
||||
if (has_exception)
|
||||
/// In case of exception, just drop all other data.
|
||||
/// If transform is stateful, it's state may be broken after exception from transform()
|
||||
data.chunk.clear();
|
||||
else
|
||||
ready_input = true;
|
||||
}
|
||||
|
||||
return Status::Ready;
|
||||
|
Loading…
Reference in New Issue
Block a user