morrySnow commented on code in PR #49698:
URL: https://github.com/apache/doris/pull/49698#discussion_r2043492333


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/CreateFunctionCommand.java:
##########
@@ -889,6 +891,7 @@ private TFunctionBinaryType getFunctionBinaryType(String 
type) {
     private void analyzeAliasFunction(ConnectContext ctx) throws 
AnalysisException {
         function = AliasFunction.createFunction(functionName, 
argsDef.getArgTypes(),
                 Type.VARCHAR, argsDef.isVariadic(), parameters, 
translateToLegacyExpr(originFunction, ctx));
+        ((AliasFunction) function).analyze();

Review Comment:
   we'd better not rely ont catalog's function's analyze methods



-- 
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