[opt](query cancel) cancel query if it has pipeline task leakage #39223 (#39537)

pick #39223 with some modifications. Optimization will only be applied
to pipeline x.
This commit is contained in:
zhiqiang
2024-08-19 14:33:59 +08:00
committed by GitHub
parent c0cbb2362c
commit 830f250a80
15 changed files with 295 additions and 37 deletions

View File

@ -535,9 +535,11 @@ Status GroupCommitTable::_exec_plan_fragment(int64_t db_id, int64_t table_id,
}
};
if (is_pipeline) {
return _exec_env->fragment_mgr()->exec_plan_fragment(pipeline_params, finish_cb);
return _exec_env->fragment_mgr()->exec_plan_fragment(
pipeline_params, QuerySource::GROUP_COMMIT_LOAD, finish_cb);
} else {
return _exec_env->fragment_mgr()->exec_plan_fragment(params, finish_cb);
return _exec_env->fragment_mgr()->exec_plan_fragment(params, QuerySource::GROUP_COMMIT_LOAD,
finish_cb);
}
}