Docs
Sign in

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.

Screenshot to add: The Add Databricks form with the Personal access token and Workspace host fields.

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 example dbc-a1b2c3d4-e5f6.cloud.databricks.com. TAO adds the rest itself.

Connect it

  1. 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.

  2. Open Connectors

    In TAO, go to Settings > Connectors, find Databricks and click Connect.

  3. Fill in the form

    Paste the token into Personal access token. Enter the Workspace host.

  4. 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 nameWhat it doesRead or Write
databricks_list_catalogsLists the catalogs the token can seeRead
databricks_list_schemasLists schemas in one catalogRead
databricks_list_tablesLists tables in a schema (not their rows)Read
databricks_get_tableShows a table's columns, types and commentsRead
databricks_list_functionsLists SQL functions in a schemaRead
databricks_list_volumesLists volume names (never their files)Read
databricks_list_warehousesLists SQL warehouses and their stateRead
databricks_get_warehouseShows one warehouse's state and sizeRead
databricks_run_queryRuns one read-only SELECT on a warehouse. Uses computeRead
databricks_get_query_statusChecks a submitted query by its statement idRead
databricks_get_result_chunkFetches another chunk of a large resultRead
databricks_cancel_queryCancels a query this session startedWrite, runs at once (no approval)
databricks_list_query_historyRecent queries on the workspace's warehousesRead
databricks_list_jobsLists jobs in the workspaceRead
databricks_get_jobShows a job's tasks, schedule and cluster setupRead
databricks_list_job_runsRecent runs of one jobRead
databricks_get_job_runShows one run's status, timing and resultRead
databricks_get_run_outputReads a run's output. Secret-looking text is hiddenRead
databricks_run_job_nowRuns an existing job nowWrite, waits for approval, cannot be undone
databricks_cancel_job_runCancels a job run in progressWrite, waits for approval, cannot be undone
databricks_list_pipelinesLists Lakeflow or DLT pipelinesRead
databricks_get_pipeline_eventsRecent progress and error events for a pipelineRead
databricks_list_clustersLists clustersRead
databricks_get_clusterShows one cluster's setup and stateRead
databricks_list_workspace_objectsLists 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_query refuses 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.