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

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


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 72e39bb68a [fix](nereids) runtimefilter target is not SlotReference 
(#23958)
72e39bb68a is described below

commit 72e39bb68a1dc467da5ebc072e47bc8dd96faf4c
Author: minghong <engle...@gmail.com>
AuthorDate: Fri Sep 8 18:26:43 2023 +0800

    [fix](nereids) runtimefilter target is not SlotReference (#23958)
---
 .../doris/nereids/processor/post/RuntimeFilterGenerator.java | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterGenerator.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterGenerator.java
index 93d80b1761..de4d65f6c5 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterGenerator.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterGenerator.java
@@ -378,12 +378,18 @@ public class RuntimeFilterGenerator extends 
PlanPostProcessor {
 
                 NamedExpression targetExpr = (NamedExpression) 
project.getProjects().get(projIndex);
 
-                SlotReference origSlot = null;
+                Expression target = null;
                 if (targetExpr instanceof Alias) {
-                    origSlot = (SlotReference) targetExpr.child(0);
+                    target = targetExpr.child(0);
                 } else {
-                    origSlot = (SlotReference) targetExpr;
+                    target = targetExpr;
                 }
+
+                if (!(target instanceof SlotReference)) {
+                    continue;
+                }
+                SlotReference origSlot = null;
+                origSlot = (SlotReference) target;
                 Slot olapScanSlot = aliasTransferMap.get(origSlot).second;
                 if (!checkCanPushDownFromJoinType(join, ctx, olapScanSlot)) {
                     continue;


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

Reply via email to