diff --git a/be/src/vec/exec/scan/vfile_scanner.cpp b/be/src/vec/exec/scan/vfile_scanner.cpp index 57f079d77a..73ad94d9cb 100644 --- a/be/src/vec/exec/scan/vfile_scanner.cpp +++ b/be/src/vec/exec/scan/vfile_scanner.cpp @@ -282,6 +282,7 @@ void VFileScanner::_get_slot_ids(VExpr* expr, std::vector* slot_ids) { } Status VFileScanner::open(RuntimeState* state) { + RETURN_IF_CANCELLED(state); RETURN_IF_ERROR(VScanner::open(state)); RETURN_IF_ERROR(_init_expr_ctxes()); @@ -309,6 +310,7 @@ Status VFileScanner::open(RuntimeState* state) { // _convert_to_output_block - - - - - - x Status VFileScanner::_get_block_impl(RuntimeState* state, Block* block, bool* eof) { do { + RETURN_IF_CANCELLED(state); if (_cur_reader == nullptr || _cur_reader_eof) { RETURN_IF_ERROR(_get_next_reader()); }