From 99b349e2ac8c0e8d1a8759fa51cbe8c3c2f23b2b Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 9 Oct 2024 14:39:37 +0800 Subject: [PATCH] [fix](schema scan) Finish schema scanner if limitation is reached --- be/src/pipeline/exec/schema_scan_operator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/be/src/pipeline/exec/schema_scan_operator.cpp b/be/src/pipeline/exec/schema_scan_operator.cpp index fcc1ed2bbb184a..006ecf8ad82e84 100644 --- a/be/src/pipeline/exec/schema_scan_operator.cpp +++ b/be/src/pipeline/exec/schema_scan_operator.cpp @@ -266,6 +266,9 @@ Status SchemaScanOperatorX::get_block(RuntimeState* state, vectorized::Block* bl } while (block->rows() == 0 && !*eos); local_state.reached_limit(block, eos); + if (*eos) { + local_state._finish_dependency->set_always_ready(); + } return Status::OK(); }