HappenLee commented on code in PR #15040: URL: https://github.com/apache/doris/pull/15040#discussion_r1050708696
########## be/src/exprs/runtime_filter.cpp: ########## @@ -1239,29 +1240,95 @@ Status IRuntimeFilter::get_prepared_vexprs(std::vector<doris::vectorized::VExpr* bool IRuntimeFilter::await() { DCHECK(is_consumer()); - SCOPED_TIMER(_await_time_cost); // bitmap filter is precise filter and only filter once, so it must be applied. int64_t wait_times_ms = _wrapper->get_real_type() == RuntimeFilterType::BITMAP_FILTER ? _state->query_options().query_timeout : _state->runtime_filter_wait_time_ms(); - std::unique_lock<std::mutex> lock(_inner_mutex); - if (!_is_ready) { - int64_t ms_since_registration = MonotonicMillis() - registration_time_; - int64_t ms_remaining = wait_times_ms - ms_since_registration; - if (ms_remaining <= 0) { - return _is_ready; + if (_state->enable_pipeline_exec() && Review Comment: better code struct: ``` if (_state->enable_pipeline_exec()) { if (_rf_state_atomic.load() == xxx) { } if () } else { } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org