Update src/Processors/Executors/ExecutingGraph.cpp

Co-authored-by: Sergei Trifonov <sergei@clickhouse.com>
This commit is contained in:
Nikolai Kochetov 2023-03-30 18:05:42 +02:00 committed by GitHub
parent 66f546ef70
commit c71deea9aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,6 +122,7 @@ bool ExecutingGraph::expandPipeline(std::stack<uint64_t> & stack, uint64_t pid)
}
processors->insert(processors->end(), new_processors.begin(), new_processors.end());
// Do not consider sources added during pipeline expansion as cancelable to avoid tricky corner cases (e.g. ConvertingAggregatedToChunksWithMergingSource cancelation)
source_processors.resize(source_processors.size() + new_processors.size(), false);
}