> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.sigmacomputing.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server.

# Connect to Databricks

> Connect to Databricks in Sigma. Configure SQL warehouses, credentials, and secure connections so users in your organization can analyze Databricks data.

Sigma supports secure connections to Databricks.

This document explains how to connect your organization to a Databricks warehouse.

For information about Sigma feature compatibility with Databricks connections, see [Region, warehouse, and feature support](/docs/region-warehouse-and-feature-support).

## Requirements

In your Sigma organization:

* You must be assigned the **Admin** [account type](/docs/account-type-and-license-overview) or an account type with the **Manage connections** feature permission enabled.

In Databricks:

* You must have access to a Databricks workspace with Databricks SQL access enabled. See <a href="https://docs.databricks.com/en/security/auth/entitlements.html" target="_blank">Manage entitlements</a> in the Databricks documentation.
* You must have access to a Databricks SQL warehouse or have the ability to create one by either being an Admin or having the `Allow unrestricted cluster creation` user entitlement. See <a href="https://docs.databricks.com/en/compute/sql-warehouse/create.html#requirements" target="_blank">Requirements</a> in the Databricks documentation.
* You must be able to either use your own personal access token (PAT) or one attached to a user or service principal who has permissions. See <a href="https://docs.databricks.com/en/admin/access-control/tokens.html#monitor-and-manage-personal-access-tokens" target="_blank">Monitor and manage access to personal access tokens</a> in the Databricks documentation.

## Configure Databricks

Complete the following steps in Databricks before you add a Databricks connection to Sigma.

1. Create a Databricks SQL warehouse if one doesn't already exist. See <a href="https://docs.databricks.com/en/compute/sql-warehouse/create.html" target="_blank">Create a SQL warehouse</a> in the Databricks documentation.

2. Confirm that the user or service principal you plan to use to connect to this SQL warehouse has `Can use` or `Can manage` permissions for the compute resource, and that all workspace users have `Can use` permissions.

3. Configure your **Auto stop** setting. For information on this setting, see <a href="https://docs.databricks.com/en/compute/sql-warehouse/create.html#configure-sql-warehouse-settings" target="_blank">Configure SQL warehouse settings</a> in the Databricks documentation.

   * If you are running a Serverless SQL warehouse, Sigma recommends that you enable **Auto stop** and setting it to 10 or 15 minutes.
   * If you are running a Pro or Classic SQL warehouse, disable **Auto stop** on your Databricks endpoint so that your first query does not time out or run slowly when the SQL endpoint is in a suspended state.

4. Configure data access to the SQL warehouse. In order to query data using the Databricks SQL warehouse, the user, group, or service principal that you use to connect Databricks to Sigma needs underlying access to the data. For instructions on how to set these permissions in Unity Catalog, see <a href="https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/index.html" target="_blank">Manage privileges in Unity Catalog</a> in the Databricks documentation.

   * At the catalog level, grant all account users `USE CATALOG` and `USE SCHEMA` privileges.
   * At the schema level, grant all account users `BROWSE`, `EXECUTE`, `READ VOLUME`, and `SELECT` privileges.
   * If you plan to enable write-access features on this connection, also grant all account users `MODIFY` and `CREATE TABLE` privileges at the schema level on the dedicated catalogs and schemas you plan to define for write access.

     For details on the privileges required for write access, see <a href="https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/privileges.html" target="_blank">Unity Catalog privileges and securable objects</a> in the Databricks documentation.

   If you are using the legacy Hive metastore to manage permissions, the permissions model is different. To set up equivalent privileges with the legacy Hive metastore, see <a href="https://docs.databricks.com/en/data-governance/table-acls/object-privileges.html" target="_blank">Hive metastore privileges and securable objects (legacy)</a> in the Databricks documentation. If you want to sync data from your `hive_metastore` catalog, the tables in that catalog require `READ_METADATA` privileges.

5. Obtain the **Server hostname** and **HTTP path** from your SQL warehouse’s **Connection details** screen. You need these values in the next step when you configure the Databricks connection in Sigma.

6. Create an access token for the user or service principal to use to connect to this SQL warehouse. The type of token you create depends on the authentication method you use when configuring the Databricks connection in Sigma. For token creation instructions, see <a href="https://docs.databricks.com/dev-tools/api/latest/authentication.html" target="_blank">Authentication for Databricks tools and APIs</a> in the Databricks documentation.

## Considerations when connecting Sigma to Databricks

When you connect Sigma to Databricks, choose the most relevant authentication method for your use case:

#### [Basic auth](/docs/connect-to-databricks#specify-your-connection-credentials)

Authenticate using a personal access token (PAT) for a service account or service principal. All users in Sigma with access to the connection share the same Databricks credentials and permissions.

Recommended when your users don't have individual Databricks accounts, or when you don't need Databricks access policies to be applied to each user in Sigma.

#### [Connection-level OAuth](/docs/connect-to-databricks-oauth#connect-to-databricks-with-connection-level-oauth)

Authenticate to Databricks using OAuth with a configuration specific to this connection. Users can sign in to Sigma using any method, but when they access data, they authenticate individually to Databricks.

Recommended when Sigma users have Databricks accounts and you want the same access policies to apply in Sigma, but you want to use a separate authentication method or OAuth server for Sigma. Required if you use multiple identity providers or want to connect to multiple data platforms using OAuth.

#### [Organization-level OAuth](/docs/connect-to-databricks-oauth#connect-to-databricks-with-organization-level-oauth)

Authenticate to Databricks using the same OAuth configuration that manages authentication to your Sigma organization. When a user signs in to Sigma with OAuth, Sigma uses their token to automatically sign them in to Databricks.

Recommended when Sigma users have Databricks accounts, you use Databricks as your Sigma identity provider, and you want the same access policies to apply in Sigma.

## Create a Databricks connection in Sigma

To create a Databricks connection, perform the following steps in Sigma:

* [Add a connection and specify connection details](#add-a-connection-and-specify-connection-details)
* [Specify your connection credentials](#specify-your-connection-credentials)
* [Configure write access](#configure-write-access)
* [Configure connection features](#configure-connection-features)

### Add a connection and specify connection details

1. Click the user icon at the top right of your screen.
   The user icon is usually composed of your initials.
2. In the drop-down menu, select **Add connection**. The **Add new connection** page appears.
3. In the **Connection details** section, specify the following:

   |          |                                                                                           |
   | -------- | ----------------------------------------------------------------------------------------- |
   | **Name** | Enter a **Name** for the new connection. Sigma displays this name in the connection list. |
   | **Type** | Select **Databricks**.                                                                    |

### Specify your connection credentials

In the **Connection credentials** section, fill out the required fields:

1. In the **Host** field, enter the value of the **Server hostname** field in the **Connection details** screen of your SQL warehouse.

2. In the **HTTP path** field, enter the value of the **HTTP path** field in the **Connection details** screen of your SQL warehouse.

3. Click the down arrow (<img src="https://sigma-docs-screenshots.s3.us-west-2.amazonaws.com/Icons/caret.svg" alt="" />) next to **Authentication**, then choose your authentication method.

   * If you want to authenticate your connection with OAuth, select **OAuth**.
   * Otherwise, select **Basic Auth**, then generate a token in Databricks to authenticate the Sigma connection. For instructions, see <a href="https://docs.databricks.com/aws/en/dev-tools/auth/pat" target="_blank">Authenticate with Databricks personal access tokens</a> in the Databricks documentation.

     Sigma requires both the `sql` and `unity-catalog` scopes on a personal access token.

Next, see [Configure OAuth features](#configure-oauth-features) if you are using OAuth to authenticate your connection. If you are not using OAuth, skip to [Configure write access](/docs/connect-to-databricks#configure-write-access) and [Configure connection features](/docs/connect-to-databricks#configure-connection-features) for additional options. Or, if you are finished configuring your connection, click **Create** at the top right to create your connection.

### Configure OAuth features

If you selected OAuth as your authentication method for the connection, see [Connect to Databricks with OAuth](/docs/connect-to-databricks-oauth) for the complete steps.

### Configure write access

Write access is necessary for the following features:

* [CSV upload](/docs/upload-csv-data)
* [Materialization](/docs/materialization)
* [Input tables](/docs/intro-to-input-tables)
* [Warehouse views](/docs/create-and-manage-workbook-warehouse-views)
* [Write Python code](/docs/write-and-run-python-code)
* [Usage dashboard for Sigma Assistant](/docs/configure-a-usage-dashboard-for-assistant)

The steps to configure write access differ depending on whether you are using OAuth or basic authentication for the connection. Follow the instructions that match your authentication option:

* [Configure write access on a connection with basic authentication](#configure-write-access-on-a-connection-with-basic-authentication)
* [Configure write access on a connection with OAuth](#configure-write-access-on-a-connection-with-oauth)

When you designate a schema as the write access destination, Sigma reserves it for internal write-back objects and doesn’t expose it as a data source in the connection explorer (data catalog). To avoid restricting user access to analytical data, use a dedicated write-back database or schema that doesn’t store data used for analysis and reports.

#### Configure write access on a connection with basic authentication

Configuring write access requires you to set up dedicated catalogs and schemas in Databricks that Sigma can use to write data and grant `MODIFY` and `CREATE TABLE` privileges on those schemas to the service account.

1. Turn on the **Enable write access** toggle.
2. Configure the following fields:

   1. In the **Write catalog** field, enter the name of the catalog where Sigma must store write-back data.
   2. In the **Write schema** field, enter the schema where Sigma must store write-back data.

#### Configure write access on a connection with OAuth

Configuring write access requires setting up dedicated catalogs and schemas in Databricks granting the necessary permissions. For information about how write access works for OAuth connections, see [About OAuth with write access](/docs/configure-oauth-with-write-access).

1. Turn on the **Enable write access** toggle.
2. For **Write destinations**, provide at least one path in the format `CATALOG.SCHEMA` where Databricks must store write-back data from Sigma objects, including input tables, input table edit logs, warehouse views, materializations, CSV uploads, and usage data from Sigma Assistant.
3. (Optional) Enter additional destinations as needed, depending on how you want to partition the data that Sigma writes back to your data warehouse. For example, you might create separate destinations for different teams and set up your team and schema permissions to ensure that each team has access to write to their designated destinations.

### Configure connection features

In the **Connection features** section, specify the following:

1. In the **Connection timeout** field, specify the amount of time, in seconds, that Sigma should wait for the query to return results before timing out. The default in 120 seconds. The maximum is 600 seconds (10 minutes).

2. \[optional] If you do not want Sigma to automatically make column names from the data source more readable, turn off the **Use friendly names** switch. For example, with **Use friendly names** turned on, a catalog column ORDER\_NUMBER or OrderNumber appears as Order Number.

3. \[optional] If you want to see and use your `hive_metastore` catalog in Sigma, turn on the **Enable Hive metastore** switch . Turned off by default.

### Enable Python

To enable Python on your Databricks connection, follow the steps to [Set up a Databricks connection for Python](/docs/set-up-a-databricks-connection-for-python), including the Databricks configuration steps.

### Finish creating your connection

After you specify all the parameters of the connection, click **Create**.

1. Click **Create** at the top right of the screen to create your connection. Sigma displays a connection summary on the screen.

2. Click **Browse connection**, then click **Add permission** to grant connection access for users in your organization. See [Data access overview](/docs/data-permissions-overview).

   ![The Permission summary on the connection, showing that no users have access to this connection yet.](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/sigma.docs.buildwithfern.com/4e5436183246554a2fdc7f2a64fb83f8f38b5f95f2e62c50f7cd6bb9624c7037/assets/docs-images/b31514d9ab39f7df1c969c6dc7b9abbbdd61d7eccd43909d8c72826a33ce7f7f-databricks-newly-created-connection.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260725T034727Z&X-Amz-Expires=604800&X-Amz-Signature=cff5bb4cbd4f881a1b851229b7c6d49c8a10079469c2d668596d2e9f0b1d72bf&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

3. Use the navigation in the left panel to explore the schemas and tables in your connection.

   ![The browse connection view, showing a table available through the connection](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/sigma.docs.buildwithfern.com/82fd9e5c4616fd61bcad09333362607f600db6ab63a2016b36ce1b59f342d442/assets/docs-images/fdbc21c43fc31c87438bba5aef11a8bdb03d055fcd10e4fe004485e7cd04fb12-databricks-browse-connection.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260725T034727Z&X-Amz-Expires=604800&X-Amz-Signature=07ff0a8023e44d5a3b882378da593fc80d5e3698fde2ed3508d39ada7a0501d1&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

## Databricks Partner Connect

Databricks is one of Sigma's partners, so you can quickly establish a connection through the interface. See <a href="https://docs.databricks.com/partner-connect/index.html" target="_blank">What is Databricks Partner Connect?</a> in the Databricks documentation.

## Related resources

* <a href="https://docs.databricks.com/partner-connect/index.html" target="_blank" rel="noopener noreferrer">
    Databricks Partner Connect
  </a>