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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]