You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "HappenLee (via GitHub)" <gi...@apache.org> on 2023/07/26 08:27:43 UTC

[GitHub] [doris] HappenLee commented on a diff in pull request #22229: [Bug](runtime-filter) fix probe expr prepared twice on minmax runtime filter

HappenLee commented on code in PR #22229:
URL: https://github.com/apache/doris/pull/22229#discussion_r1274560592


##########
be/src/exprs/runtime_filter.cpp:
##########
@@ -1840,14 +1839,16 @@ Status IRuntimeFilter::update_filter(const UpdateRuntimeFilterParamsV2* param,
 }
 
 Status RuntimePredicateWrapper::get_push_exprs(std::vector<vectorized::VExprSPtr>* container,
-                                               const vectorized::VExprContextSPtr& prob_expr) {
-    DCHECK(container != nullptr);
-    DCHECK(_pool != nullptr);
-    DCHECK(prob_expr->root()->type().type == _column_return_type ||
-           (is_string_type(prob_expr->root()->type().type) &&
+                                               const TExpr& probe_expr) {
+    vectorized::VExprContextSPtr probe_ctx;
+    RETURN_IF_ERROR(vectorized::VExpr::create_expr_tree(probe_expr, probe_ctx));
+    _probe_ctxs.push_back(probe_ctx);

Review Comment:
   the op need lock else may be cause coredump



-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org