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

morrysnow pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 9c1f34359d4 [fix](point query) should check it is Slot before check it 
is DELETE_SIGN (#36566)
9c1f34359d4 is described below

commit 9c1f34359d4868e56e22ff53fb625b58a7d894ce
Author: morrySnow <101034200+morrys...@users.noreply.github.com>
AuthorDate: Thu Jun 20 10:29:21 2024 +0800

    [fix](point query) should check it is Slot before check it is DELETE_SIGN 
(#36566)
    
    pick from master #36564
    
    introduced by #36443
---
 .../rules/analysis/LogicalResultSinkToShortCircuitPointQuery.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/LogicalResultSinkToShortCircuitPointQuery.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/LogicalResultSinkToShortCircuitPointQuery.java
index d856b9599cb..a63c9ce4add 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/LogicalResultSinkToShortCircuitPointQuery.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/LogicalResultSinkToShortCircuitPointQuery.java
@@ -55,7 +55,8 @@ public class LogicalResultSinkToShortCircuitPointQuery 
implements RewriteRuleFac
                 // all conjuncts match with pattern `key = ?`
                 expression -> (expression instanceof EqualTo)
                         && 
(removeCast(expression.child(0)).isKeyColumnFromTable()
-                        || ((SlotReference) 
expression.child(0)).getName().equals(Column.DELETE_SIGN))
+                        || (expression.child(0) instanceof SlotReference
+                        && ((SlotReference) 
expression.child(0)).getName().equals(Column.DELETE_SIGN)))
                         && expression.child(1).isLiteral());
     }
 


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

Reply via email to