[Fix](query execution) Fix result sink fragment can't be cancelled in non-pipeline (#25524)

This commit is contained in:
zhiqiang
2023-10-23 22:30:29 -05:00
committed by GitHub
parent 215c1625b2
commit 87b414cdae
13 changed files with 90 additions and 109 deletions

View File

@ -313,6 +313,7 @@ Status RuntimeState::query_status() {
}
bool RuntimeState::is_cancelled() const {
// Maybe we should just return _is_cancelled.load()
return _is_cancelled.load() || (_query_ctx && _query_ctx->is_cancelled());
}