This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new f3dce9a6c1 [fix](planner) fix is-null predicate in where statement 
cannot be pushed down to the storage layer (#9035)
f3dce9a6c1 is described below

commit f3dce9a6c177af8a1ba10bbaf5c6d4ff4e985922
Author: shee <13843187+qz...@users.noreply.github.com>
AuthorDate: Mon Apr 18 04:35:02 2022 -0700

    [fix](planner) fix is-null predicate in where statement cannot be pushed 
down to the storage layer (#9035)
---
 be/src/exec/olap_scan_node.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/exec/olap_scan_node.cpp b/be/src/exec/olap_scan_node.cpp
index c98969b226..778370c16c 100644
--- a/be/src/exec/olap_scan_node.cpp
+++ b/be/src/exec/olap_scan_node.cpp
@@ -1212,7 +1212,7 @@ Status 
OlapScanNode::normalize_noneq_binary_predicate(SlotDescriptor* slot,
                 std::string is_null_str;
                 // 1. dispose the where pred "A is null" and "A is not null"
                 if (root_expr->is_null_scalar_function(is_null_str) &&
-                    normalize_is_null_predicate(root_expr, slot, is_null_str, 
range)) {
+                    normalize_is_null_predicate(root_expr->get_child(0), slot, 
is_null_str, range)) {
                     // if column is key column should push down conjunct 
storage engine
                     if (is_key_column(slot->col_name())) {
                         filter_conjuncts_index.emplace_back(conj_idx);


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

Reply via email to