Databricks lets the AI run SQL on a SQL warehouse, check progress and cancel statements, for data pages and reports.
What you can ask for#
Run this revenue query on my warehouse, wait for it to finish and show the first 100 rows.
List the SQL warehouses and clusters I can use.
Cancel the long-running statement I just started.
Connect Databricks#
Step 1: Find the connector
Open Tools, then Connectors, and search for Databricks. You can also go to Settings, then Connectors, in your dashboard.
Step 2: Select Connect
Select Connect to open the secure form.
Step 3: Enter the details
Fill in Service principal client ID, Service principal client secret, Workspace URL and SQL warehouse ID. Hidden fields show as dots; use the eye icon to check what you typed.
Step 4: Save
Select Save connection. Swarmz encrypts the credentials and only decrypts them to call Databricks for you. Everyone in your workspace can then use the connection.
Where to find your credentials#
Create a service principal in Databricks and an OAuth secret for it. Enter its client ID and secret, your Workspace URL (for example https://dbc-xxxx.cloud.databricks.com) and the SQL warehouse ID. Grant the principal access to the warehouse.
What the AI can and can't do#
- Submit SQL statements, poll for results and cancel them.
- List the compute you can use.
- Disconnecting removes the credential from Swarmz. It does not stop jobs already running in Databricks.
- Apps you publish can call this connector too, not just the builder.
- Changes ask for your approval by default. You can adjust this under Agent permissions on the connection. See What an integration can access.
Troubleshooting#
Authorisation fails.
Check the workspace URL, the warehouse permission, and the client ID and secret.
A statement does not finish.
Check that the warehouse is running and large queries have enough compute.
Where is the warehouse ID?
Open the warehouse in Databricks. The ID is in its connection details.
General steps for any connector are in Connect an integration. Keys and secrets are covered in Secrets and API keys. To remove it, see Disconnect an integration.
What Swarmz can do with it
SQL statement lifecycle
Submit, poll, and cancel SQL warehouse statements.
Compute discovery
List SQL warehouses and clusters.
More in Data & analytics
Still stuck?
A person from Swarmz Support can take a look.