You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2020/08/01 09:46:50 UTC

[incubator-doris] branch master updated: [BUG] Fix wrong result of querying with cast expr in where clause (#4219)

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 3ce6fc6  [BUG] Fix wrong result of querying with cast expr in where clause (#4219)
3ce6fc6 is described below

commit 3ce6fc631e4baf80bc7a5c7aa21363d0ef5de4a6
Author: sduzh <zh...@qq.com>
AuthorDate: Sat Aug 1 17:46:39 2020 +0800

    [BUG] Fix wrong result of querying with cast expr in where clause (#4219)
---
 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 caec9af..ac1fb1d 100644
--- a/be/src/exec/olap_scan_node.cpp
+++ b/be/src/exec/olap_scan_node.cpp
@@ -954,7 +954,7 @@ Status OlapScanNode::normalize_in_and_eq_predicate(SlotDescriptor* slot, ColumnV
 }
 
 void OlapScanNode::construct_is_null_pred_in_where_pred(Expr* expr, SlotDescriptor* slot, std::string is_null_str) {
-    if (Expr::type_without_cast(expr) != TExprNodeType::SLOT_REF) {
+    if (expr->node_type() != TExprNodeType::SLOT_REF) {
         return;
     }
 


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