jerry-024 commented on code in PR #5702: URL: https://github.com/apache/paimon/pull/5702#discussion_r2131614694
########## paimon-api/src/main/java/org/apache/paimon/rest/RESTApi.java: ########## @@ -851,6 +852,7 @@ public List<String> listFunctions(String databaseName) { * @throws ForbiddenException if the user lacks permission to access the function */ public GetFunctionResponse getFunction(Identifier identifier) { + FunctionNameValidator.check(identifier.getObjectName()); Review Comment: If using NoSuchResourceException, this exception is not reasonable when creating a function. So here, IllegalArgumentException may be better. We could give different in function's api in catalog. -- 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: issues-unsubscr...@paimon.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org