mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
Disable pushing exceptions to ports from ISource.
This commit is contained in:
parent
99ff2375ab
commit
0faab7ff12
@ -43,7 +43,7 @@ ISource::Status ISource::prepare()
|
||||
|
||||
void ISource::work()
|
||||
{
|
||||
try
|
||||
/// try
|
||||
{
|
||||
current_chunk = generate();
|
||||
if (!std::get<Chunk>(current_chunk))
|
||||
@ -51,12 +51,12 @@ void ISource::work()
|
||||
else
|
||||
has_input = true;
|
||||
}
|
||||
catch (Exception &)
|
||||
{
|
||||
current_chunk = std::current_exception();
|
||||
has_input = true;
|
||||
got_exception = true;
|
||||
}
|
||||
// catch (Exception &)
|
||||
// {
|
||||
// current_chunk = std::current_exception();
|
||||
// has_input = true;
|
||||
// got_exception = true;
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ protected:
|
||||
OutputPort & output;
|
||||
bool has_input = false;
|
||||
bool finished = false;
|
||||
bool got_exception = false;
|
||||
[[maybe_unused]] bool got_exception = false;
|
||||
Port::Data current_chunk;
|
||||
|
||||
virtual Chunk generate() = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user