Listing Functions
This section describes how to list all functions in a specified database.
Prerequisites
- The SDK has been installed. For details, see Obtaining and Installing the Catalog SDK.
- A database is available.
Function Signature
client.list_function(*, database=None) -> list[Function]
Parameter Description
| Parameter | Mandatory (Yes/No) | Type | Default Value | Description |
|---|---|---|---|---|
| database | No | str | None | default_database | Database name. If this parameter is set to None, the default database is used. |
Return Value
Returns a list[Function] containing all function objects in the database.
Sample Code
for func in client.list_function():
print(func.function_name, func.parameters.udf_type) What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot