@Generated public class FunctionsAPI extends Object
The function implementation can be any SQL expression or Query, and it can be invoked wherever a table reference is allowed in a query. In Unity Catalog, a function resides at the same level as a table, so it can be referenced with the form __catalog_name__.__schema_name__.__function_name__.
| Constructor and Description |
|---|
FunctionsAPI(ApiClient apiClient)
Regular-use constructor
|
FunctionsAPI(FunctionsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
FunctionInfo |
create(CreateFunctionRequest request)
**WARNING: This API is experimental and will change in future versions**
|
void |
delete(DeleteFunctionRequest request)
Deletes the function that matches the supplied name.
|
void |
delete(String name) |
FunctionInfo |
get(GetFunctionRequest request)
Gets a function from within a parent catalog and schema.
|
FunctionInfo |
get(String name) |
FunctionsService |
impl() |
Iterable<FunctionInfo> |
list(ListFunctionsRequest request)
List functions within the specified parent catalog and schema.
|
Iterable<FunctionInfo> |
list(String catalogName,
String schemaName) |
FunctionInfo |
update(UpdateFunction request)
Updates the function that matches the supplied name.
|
public FunctionsAPI(ApiClient apiClient)
public FunctionsAPI(FunctionsService mock)
public FunctionInfo create(CreateFunctionRequest request)
Creates a new function
The user must have the following permissions in order for the function to be created: - **USE_CATALOG** on the function's parent catalog - **USE_SCHEMA** and **CREATE_FUNCTION** on the function's parent schema
public void delete(String name)
public void delete(DeleteFunctionRequest request)
public FunctionInfo get(String name)
public FunctionInfo get(GetFunctionRequest request)
public Iterable<FunctionInfo> list(String catalogName, String schemaName)
public Iterable<FunctionInfo> list(ListFunctionsRequest request)
NOTE: we recommend using max_results=0 to use the paginated version of this API. Unpaginated calls will be deprecated soon.
PAGINATION BEHAVIOR: When using pagination (max_results >= 0), a page may contain zero results while still providing a next_page_token. Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
public FunctionInfo update(UpdateFunction request)
public FunctionsService impl()
Copyright © 2026. All rights reserved.