compasses commented on code in PR #10355:
URL: https://github.com/apache/doris/pull/10355#discussion_r904980824


##########
be/src/vec/exec/volap_scan_node.cpp:
##########
@@ -729,6 +729,72 @@ Status VOlapScanNode::build_olap_filters() {
     return Status::OK();
 }
 
+Status VOlapScanNode::build_function_filters() {
+    for (int conj_idx = 0; conj_idx < _conjunct_ctxs.size(); ++conj_idx) {
+        ExprContext* ex_ctx = _conjunct_ctxs[conj_idx];
+        Expr* fn_expr = ex_ctx->root();
+        bool opposite = false;
+
+        if (TExprNodeType::COMPOUND_PRED == fn_expr->node_type())
+        {
+            if (TExprOpcode::COMPOUND_NOT == fn_expr->op())
+            {
+                fn_expr = fn_expr->get_child(0);
+                opposite = true;
+            }
+        }
+
+        if (TExprNodeType::FUNCTION_CALL == fn_expr->node_type())

Review Comment:
   ok, make sense, will try to make it more clearly.



-- 
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

Reply via email to