Documentation
GuidesConnections

Connect to Databricks

Create a Databricks connection with a personal access token or OAuth credentials, and add an optional staging schema.

This page explains how to connect a Databricks workspace to Bobsled AI. A Databricks connection authenticates with a personal access token (PAT) or with OAuth machine-to-machine (M2M) credentials. It runs queries on the SQL warehouses that you add. For the steps that every provider shares, see Create and manage connections.

Before you begin

  • Get the role that creates connections.
  • For PAT authentication, create a Project secret that holds the token.
  • For OAuth M2M, get the client ID, and create a Project secret that holds the client secret.
  • Optional: To join uploaded CSV data with Databricks queries, create a staging schema in the selected catalog.

Required permissions

The connection identity needs access to the SQL warehouses and the Unity Catalog objects that it queries. For a staging schema, also grant the identity the following permissions:

  • USE CATALOG on the catalog.
  • USE SCHEMA and CREATE TABLE on the staging schema.

Databricks lists these grants as prerequisites for table creation.

Create a Databricks connection

To create a Databricks connection, do the following:

  1. On the Connections page, click Add connection, and then select Databricks.
  2. Enter a Display name.
  3. Enter the Workspace URL, Catalog, and Schema.
  4. Optional: Enter a Staging schema (optional) in the selected catalog.
  5. In Authentication, select a Method.
  6. Select the secret for the method:
    • For Personal access token, select the Token secret.
    • For OAuth M2M, enter the Client ID, and then select the Client secret from Project secrets.
  7. In Execution target, add at least one SQL warehouse with its HTTP path.
  8. Select a Default warehouse.
  9. Click Save connection. Bobsled AI tests the connection.

If the test fails, check the SQL warehouse access and Unity Catalog grants for the same identity. For the failure categories, see Troubleshoot a failed test.

Staging schema

Bobsled AI creates managed tables in the staging schema, reuses them for later queries, and removes them with their attachments. Leave Staging schema (optional) blank to keep the existing query path.

With a staging schema, Test connection creates a managed table, writes and reads one row, checks its ownership property, and removes the table.

What's next

On this page