zy-kkk commented on code in PR #30807:
URL: https://github.com/apache/doris/pull/30807#discussion_r1477914087


##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/jdbc/JdbcFunctionPushDownRule.java:
##########
@@ -168,9 +171,48 @@ private static String 
replaceFunctionNameIfNecessary(String func, Predicate<Stri
             }
             if (newFunc != null) {
                 
functionCallExpr.setFnName(FunctionName.createBuiltinName(newFunc));
-                func = functionCallExpr.getFnName().getFunction();
             }
         }
-        return func;
+    }
+
+    // Function used to convert nereids planner's function to old planner's 
function
+    private static Expr replaceGenericFunctionExpr(FunctionCallExpr 
functionCallExpr, String func) {
+        Map<String, String> supportedTimeUnits = Maps.newHashMap();

Review Comment:
   replaceGenericFunctionExpr is static because it processes based on 
parameters without requiring object state, and it's used in static contexts 
where non-static methods cannot be called directly.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to