Add processlist to PipelineExecutor. Throw exception if query was killed.

This commit is contained in:
Nikolai Kochetov 2020-01-28 16:16:02 +03:00
parent 5a8a367228
commit fea33f8b60

View File

@ -474,13 +474,11 @@ void PipelineExecutor::execute(size_t num_threads)
throw;
}
if (cancelled)
{
if (process_list_element && process_list_element->isKilled())
throw Exception("Query was cancelled", ErrorCodes::QUERY_WAS_CANCELLED);
if (process_list_element && process_list_element->isKilled())
throw Exception("Query was cancelled", ErrorCodes::QUERY_WAS_CANCELLED);
if (cancelled)
return;
}
bool all_processors_finished = true;
for (auto & node : graph)