Databricks icon

Databricks

Interact with Databricks API

Unity Catalog → Get Function

AI-generated

Overview

This node operation retrieves detailed information about a specific function within the Unity Catalog resource of Databricks. It is useful for users who need to access metadata or properties of a function defined in a catalog schema, such as for auditing, documentation, or integration purposes. For example, a user can specify the full name of a function in the format 'catalog.schema.function' to fetch its details via the Databricks API.

Use Case Examples

  1. Retrieve metadata of a function named 'main.default.my_function' in Unity Catalog to verify its input parameters and return type.
  2. Fetch details of a specific function to use its definition in automated workflows or data governance processes.

Properties

Name Meaning
Function The full name of the function to access, specified in the format 'catalog.schema.function'. This property is required and supports selection from a list or manual entry.

Output

JSON

  • json - The detailed information of the requested function retrieved from the Unity Catalog API.

Dependencies

  • Databricks API authentication token and host URL credentials are required to make authorized API requests.

Troubleshooting

  • Ensure the function name is correctly formatted as 'catalog.schema.function' to avoid validation errors.
  • Verify that the API credentials have sufficient permissions to access Unity Catalog functions.
  • Check network connectivity and API endpoint availability if requests fail.
  • Handle API errors gracefully, as the node captures and reports HTTP status and error messages from the Databricks API.

Links

Discussion