Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel39 committed Aug 24, 2023
1 parent b918840 commit ef92e6a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions be/src/pipeline/pipeline_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ class PipelineTask {
return false;
}

bool source_can_read() { return _source->can_read() || ignore_blocking_source();; }
bool source_can_read() {
return _source->can_read() || ignore_blocking_source();
;
}

bool runtime_filters_are_ready_or_timeout() {
return _source->runtime_filters_are_ready_or_timeout();
Expand Down Expand Up @@ -183,9 +186,9 @@ class PipelineTask {
* 1. if any operator in pipeline can terminate early, this task should never be blocked by source operator.
* 2. if the last operator (except sink) can terminate early, this task should never be blocked by sink operator.
*/
[[nodiscard]] virtual bool ignore_blocking_sink() { return _root->can_terminate_early(); }
[[nodiscard]] bool ignore_blocking_sink() { return _root->can_terminate_early(); }

[[nodiscard]] virtual bool ignore_blocking_source() {
[[nodiscard]] bool ignore_blocking_source() {
for (size_t i = 1; i < _operators.size(); i++) {
if (_operators[i]->can_terminate_early()) {
return true;
Expand Down

0 comments on commit ef92e6a

Please sign in to comment.