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

englefly pushed a commit to branch tpc_preview3
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/tpc_preview3 by this push:
     new 7e6ddd4ef15 fix-null-literal
7e6ddd4ef15 is described below

commit 7e6ddd4ef159fc72ec605f3fd95760e4128a0558
Author: minghong <[email protected]>
AuthorDate: Wed Dec 3 15:05:50 2025 +0800

    fix-null-literal
---
 .../rules/rewrite/eageraggregation/PushdownSumIfAggregation.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/eageraggregation/PushdownSumIfAggregation.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/eageraggregation/PushdownSumIfAggregation.java
index 1b1de45153b..a37be8030ad 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/eageraggregation/PushdownSumIfAggregation.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/eageraggregation/PushdownSumIfAggregation.java
@@ -142,7 +142,7 @@ public class PushdownSumIfAggregation extends 
DefaultPlanRewriter<JobContext> im
                                         new If(
                                                 
output.child(0).child(0).child(0),
                                                 toReplace,
-                                                new NullLiteral()
+                                                new 
NullLiteral(toReplace.getDataType())
                                     )
                             )
                         );


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to