BiteTheDDDDt commented on code in PR #62737:
URL: https://github.com/apache/doris/pull/62737#discussion_r3129087559
##########
be/src/exec/runtime_filter/runtime_filter_consumer.h:
##########
@@ -90,13 +90,17 @@ class RuntimeFilterConsumer : public RuntimeFilter {
_probe_expr(desc->planId_to_target_expr.find(node_id)->second),
_registration_time(MonotonicMillis()),
_rf_state(State::NOT_READY) {
- // If bitmap filter is not applied, it will cause the query result to
be incorrect
- // local rf must wait until timeout, otherwise it may lead results
incorrectness, because LEFT_SEMI_DIRECT_RETURN_OPT
- bool wait_infinitely = state->runtime_filter_wait_infinitely() ||
- _runtime_filter_type ==
RuntimeFilterType::BITMAP_FILTER ||
- !has_remote_target();
- _rf_wait_time_ms = wait_infinitely ?
state->get_query_ctx()->execution_timeout() * 1000
- :
state->get_query_ctx()->runtime_filter_wait_time_ms();
+ if (desc->__isset.wait_time_ms) {
+ _rf_wait_time_ms = desc->wait_time_ms;
Review Comment:
最好增加一个isset.wait_time_ms和has_remote_target必须同时为true的检查
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]