[pipeline](fix) Avoid to use a freed dependency when cancelled (#34584) (#38046)

## Proposed changes

pick #34584
<!--Describe your changes.-->
This commit is contained in:
Gabriel
2024-07-18 15:27:10 +08:00
committed by GitHub
parent c30c1d2436
commit 88d771d360
17 changed files with 71 additions and 102 deletions

View File

@ -57,8 +57,7 @@ QueryContext::QueryContext(TUniqueId query_id, int total_fragment_num, ExecEnv*
_start_time = VecDateTimeValue::local_time();
_shared_hash_table_controller.reset(new vectorized::SharedHashTableController());
_shared_scanner_controller.reset(new vectorized::SharedScannerController());
_execution_dependency =
pipeline::Dependency::create_unique(-1, -1, "ExecutionDependency", this);
_execution_dependency = pipeline::Dependency::create_unique(-1, -1, "ExecutionDependency");
_runtime_filter_mgr = std::make_unique<RuntimeFilterMgr>(
TUniqueId(), RuntimeFilterParamsContext::create(this), query_mem_tracker);