Appearance
Databricks Preview
Connect Codatum to Databricks to run SQL and manage data. Supported targets are serverless SQL warehouses. For an overview of connections in general, see Connection.
INFO
This feature is in preview. To request access, contact Codatum support.
Preparing Databricks
Account console
- Create a service principal for the integration under User management > Service principals.
- Generate an OAuth secret under Credentials & secrets, and note the client ID/secret.
- For the scope, select
all-apis. If you select a scope limited to some APIs, such assql, the connection test in Codatum fails. - You can't change the scope after you generate the secret. If you selected a scope other than
all-apis, generate a new secret withall-apis. - A secret generated without a scope is treated as
all-apis.
- For the scope, select
- Leave all role settings for the service principal turned off. Role settings are separate from the scope of the OAuth secret.
- Add the service principal to the workspace you're connecting to.
Workspace admin console
- Grant the service principal
Can Useon the SQL warehouse you're connecting to. - Grant
SELECT/USE CATALOG/USE SCHEMAon the catalog.
Configuring Codatum
- Open global nav > Workspace settings > Data management > Connections, then select New connection.
- Select Databricks.
- Set a Connection name and Access level.
- Enter the following.
| Item | Description |
|---|---|
| Server hostname | The hostname from the SQL warehouse's connection details (for example, <your_instance_name>.cloud.databricks.com). To change it for a saved connection, also enter the Client ID and Client secret again. |
| HTTP path | The HTTP path from the SQL warehouse's connection details (for example, /sql/1.0/warehouses/<your_warehouse_id>) |
| Warehouse ID | The ID from the SQL warehouse's overview |
| Client ID | The client ID of the service principal |
| Client secret | The client secret of the service principal |
After entering these, run Test connect, then save the connection. On the sync targets screen shown after saving, select the databases/schemas to sync (Table metadata sync). You can also skip this step.