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

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


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new fe7f01cfd71 branch-3.0: [fix](compile) fix fe compile failed by code 
too large #46408 (#46419)
fe7f01cfd71 is described below

commit fe7f01cfd717ce6ab9942e496f2a7ea684bf7d39
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Jan 5 05:08:35 2025 +0800

    branch-3.0: [fix](compile) fix fe compile failed by code too large #46408 
(#46419)
    
    Cherry-picked from #46408
    
    Co-authored-by: 924060929 <lanhuaj...@selectdb.com>
---
 .../generator/ExpressionTypeMappingGenerator.java  | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/pattern/generator/ExpressionTypeMappingGenerator.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/pattern/generator/ExpressionTypeMappingGenerator.java
index c5a923153df..d84693c00ed 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/pattern/generator/ExpressionTypeMappingGenerator.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/pattern/generator/ExpressionTypeMappingGenerator.java
@@ -36,6 +36,25 @@ import javax.tools.StandardLocation;
 
 /** ExpressionTypeMappingGenerator */
 public class ExpressionTypeMappingGenerator {
+    private static final Set<String> FORBIDDEN_CLASS = Sets.newHashSet(
+            
"org.apache.doris.nereids.trees.expressions.functions.ExpressionTrait",
+            "org.apache.doris.nereids.trees.expressions.shape.LeafExpression",
+            "org.apache.doris.nereids.trees.expressions.shape.UnaryExpression",
+            
"org.apache.doris.nereids.trees.expressions.shape.BinaryExpression",
+            
"org.apache.doris.nereids.trees.expressions.functions.AlwaysNullable",
+            
"org.apache.doris.nereids.trees.expressions.functions.AlwaysNotNullable",
+            
"org.apache.doris.nereids.trees.expressions.functions.PropagateNullLiteral",
+            
"org.apache.doris.nereids.trees.expressions.typecoercion.ImplicitCastInputTypes",
+            
"org.apache.doris.nereids.trees.expressions.functions.ExplicitlyCastableSignature",
+            "org.apache.doris.nereids.trees.expressions.functions.Function",
+            
"org.apache.doris.nereids.trees.expressions.functions.FunctionTrait",
+            
"org.apache.doris.nereids.trees.expressions.functions.ComputeSignature",
+            
"org.apache.doris.nereids.trees.expressions.functions.scalar.ScalarFunction",
+            
"org.apache.doris.nereids.trees.expressions.typecoercion.ExpectsInputTypes",
+            
"org.apache.doris.nereids.trees.expressions.functions.ComputeNullable",
+            
"org.apache.doris.nereids.trees.expressions.functions.PropagateNullable"
+    );
+
     private final JavaAstAnalyzer analyzer;
 
     public ExpressionTypeMappingGenerator(JavaAstAnalyzer javaAstAnalyzer) {
@@ -134,6 +153,10 @@ public class ExpressionTypeMappingGenerator {
               + "                = ImmutableMap.builderWithExpectedSize(" + 
childrenNameMap.size() + ");\n";
 
         for (String superExpression : superExpressions) {
+            if (FORBIDDEN_CLASS.contains(superExpression)) {
+                continue;
+            }
+
             Set<String> childrenClasseSet = 
childrenNameMap.get(superExpression)
                     .stream()
                     .filter(childClass -> parentNameMap.get(childClass)


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

Reply via email to