This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch spill_and_reserve in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/spill_and_reserve by this push: new 1164a063abe [fix](scanner) should check _scanner_ctx is nullptr (#47195) 1164a063abe is described below commit 1164a063abe05130f7256c526849fafebf855a1f Author: Jerry Hu <hushengg...@selectdb.com> AuthorDate: Sat Jan 18 19:29:40 2025 +0800 [fix](scanner) should check _scanner_ctx is nullptr (#47195) --- be/src/pipeline/exec/scan_operator.cpp | 1 + be/src/pipeline/exec/scan_operator.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/be/src/pipeline/exec/scan_operator.cpp b/be/src/pipeline/exec/scan_operator.cpp index 58f9c9b755c..4860dbc4d63 100644 --- a/be/src/pipeline/exec/scan_operator.cpp +++ b/be/src/pipeline/exec/scan_operator.cpp @@ -1276,6 +1276,7 @@ Status ScanOperatorX<LocalStateType>::get_block(RuntimeState* state, vectorized: return Status::OK(); } + DCHECK(local_state._scanner_ctx != nullptr); RETURN_IF_ERROR(local_state._scanner_ctx->get_block_from_queue(state, block, eos, 0)); local_state.reached_limit(block, eos); diff --git a/be/src/pipeline/exec/scan_operator.h b/be/src/pipeline/exec/scan_operator.h index d6cd2806db5..fdab332893f 100644 --- a/be/src/pipeline/exec/scan_operator.h +++ b/be/src/pipeline/exec/scan_operator.h @@ -389,7 +389,10 @@ public: void set_low_memory_mode(RuntimeState* state) override { auto& local_state = get_local_state(state); - local_state._scanner_ctx->clear_free_blocks(); + + if (local_state._scanner_ctx) { + local_state._scanner_ctx->clear_free_blocks(); + } } int64_t get_push_down_count() const { return _push_down_count; } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org