Databricks
Databricks is a cloud platform for data and analytics. The Databricks connector lets TAO browse your data catalog, run read-only SQL, check jobs, pipelines and clusters, and, with approval, start or stop a job.
What you can do
Illustrative examples.
- Ask Nexus what catalogs, schemas and tables you have, and what columns a table holds.
- Run a read-only query on a SQL warehouse and summarize the result.
- Check why last night's job failed, by reading its run status and output.
- Request that an existing job runs now. You approve it first.
Before you connect
You need two things:
- A personal access token. This is a long secret that stands in for a password. It looks like
dapi.... Create it in your workspace under Settings > Developer > Access tokens. - Your workspace host. This is the web address of your workspace, with no
https://and nothing after it. For exampledbc-a1b2c3d4-e5f6.cloud.databricks.com. TAO adds the rest itself.
Connect it
Create the token
In Databricks, open Settings > Developer > Access tokens and generate a token. Copy just the token, not an Authorization header or a URL.
Open Connectors
In TAO, go to Settings > Connectors, find Databricks and click Connect.
Fill in the form
Paste the token into Personal access token. Enter the Workspace host.
Save
Save the connection. The token is stored encrypted and is not shown again.
An administrator must switch the Databricks connector on first. It is created switched off.
Tools
| Tool name | What it does | Read or Write |
|---|---|---|
databricks_list_catalogs | Lists the catalogs the token can see | Read |
databricks_list_schemas | Lists schemas in one catalog | Read |
databricks_list_tables | Lists tables in a schema (not their rows) | Read |
databricks_get_table | Shows a table's columns, types and comments | Read |
databricks_list_functions | Lists SQL functions in a schema | Read |
databricks_list_volumes | Lists volume names (never their files) | Read |
databricks_list_warehouses | Lists SQL warehouses and their state | Read |
databricks_get_warehouse | Shows one warehouse's state and size | Read |
databricks_run_query | Runs one read-only SELECT on a warehouse. Uses compute | Read |
databricks_get_query_status | Checks a submitted query by its statement id | Read |
databricks_get_result_chunk | Fetches another chunk of a large result | Read |
databricks_cancel_query | Cancels a query this session started | Write, runs at once (no approval) |
databricks_list_query_history | Recent queries on the workspace's warehouses | Read |
databricks_list_jobs | Lists jobs in the workspace | Read |
databricks_get_job | Shows a job's tasks, schedule and cluster setup | Read |
databricks_list_job_runs | Recent runs of one job | Read |
databricks_get_job_run | Shows one run's status, timing and result | Read |
databricks_get_run_output | Reads a run's output. Secret-looking text is hidden | Read |
databricks_run_job_now | Runs an existing job now | Write, waits for approval, cannot be undone |
databricks_cancel_job_run | Cancels a job run in progress | Write, waits for approval, cannot be undone |
databricks_list_pipelines | Lists Lakeflow or DLT pipelines | Read |
databricks_get_pipeline_events | Recent progress and error events for a pipeline | Read |
databricks_list_clusters | Lists clusters | Read |
databricks_get_cluster | Shows one cluster's setup and state | Read |
databricks_list_workspace_objects | Lists notebook, folder and file names under a path (never content) | Read |
Total: 25 tools. 22 read, 1 cancel-query that runs at once, and 2 job actions that wait for approval.
Limits and good to know
- Read-only SQL. A query must be one SELECT or WITH ... SELECT. A semicolon or a data-changing keyword is refused. A row limit (default 500, up to 5000) and an ORDER BY are enforced. Columns that look like credentials are blocked from results.
- Stopped warehouses are not woken. Databricks bills per second and wakes a stopped warehouse on the first query. So
databricks_run_queryrefuses unless the warehouse is running. Start it yourself, then try again. On a serverless warehouse this is common after quiet periods. It is not an error. - Job actions need approval. Running a job runs real code on your compute. Cancelling a run can interrupt a production pipeline. Both always wait for approval, even in bypass mode.
- No content access. The connector lists names of volumes and workspace items but never opens their files. It also has no tools for secrets, permissions or users.
- Tool count differs. The tool list holds 25 tools and the catalog text says about 25. A code comment in the gateway says "23 reads + 1 mutating-but-unqueued + 2 queued", which would total 26. This page follows the actual list.
- Free to browse. Listing catalogs, schemas, tables, functions, volumes, warehouses and objects needs no running warehouse.