aokolnychyi commented on code in PR #5377: URL: https://github.com/apache/iceberg/pull/5377#discussion_r933706520
########## spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/BaseCatalog.java: ########## @@ -47,4 +56,38 @@ public Procedure loadProcedure(Identifier ident) throws NoSuchProcedureException throw new NoSuchProcedureException(ident); } + + @Override + public Identifier[] listFunctions(String[] namespace) throws NoSuchNamespaceException { + if (namespace.length == 0 + || (namespace.length == 1 && namespace[0].equalsIgnoreCase("system"))) { Review Comment: nit: What about defining a helper function `isSystemNamespace`? There are 3 places where we can call it. ``` private boolean isSystemNamespace(String[] namespace) { return namespace.length == 1 && namespace[0].equalsIgnoreCase("system"); } ``` -- 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...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org