Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BiteTheDDDDt committed Dec 10, 2024
1 parent 12cede3 commit 6153160
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions be/src/pipeline/pipeline_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ Status PipelineTask::execute(bool* eos) {
if (!*eos) {
SCOPED_TIMER(_get_block_timer);
_get_block_counter->update(1);
auto st = _root->get_block_after_projects(_state, block, eos);
RETURN_IF_ERROR(_root->get_block_after_projects(_state, block, eos));
}

if (_block->rows() != 0 || *eos) {
Expand Down Expand Up @@ -467,12 +467,11 @@ Status PipelineTask::close(Status exec_status, bool close_sink) {
SCOPED_RAW_TIMER(&close_ns);
if (close_sink) {
s = _sink->close(_state, exec_status);
} else {
for (auto& op : _operators) {
auto tem = op->close(_state);
if (!tem.ok() && s.ok()) {
s = tem;
}
}
for (auto& op : _operators) {
auto tem = op->close(_state);
if (!tem.ok() && s.ok()) {
s = tem;
}
}
}
Expand Down

0 comments on commit 6153160

Please sign in to comment.