Returns the function that best matches 'desc' that is registered with the catalog using 'mode' to check for matching. If desc matches multiple functions in the catalog, it will return the function with the strictest matching mode. If multiple functions match at the same matching mode, best match is
(Function desc, Function.CompareMode mode)
| 402 | * alphabetical order of argument type name, to guarantee deterministic results. |
| 403 | */ |
| 404 | public @Nullable Function getFunction(Function desc, Function.CompareMode mode) { |
| 405 | Db db = getDb(desc.dbName()); |
| 406 | if (db == null) return null; |
| 407 | return db.getFunction(desc, mode); |
| 408 | } |
| 409 | |
| 410 | /** |
| 411 | * Removes a function from the catalog. Increments the catalog version and returns |
no test coverage detected