> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mora.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Databricks

> Connect Mora to a Databricks SQL warehouse.

## Prerequisites

* A Databricks workspace with a SQL warehouse.
* A personal access token with access to the target catalog.

## Required fields

| Field            | Description                                   | Example                                |
| ---------------- | --------------------------------------------- | -------------------------------------- |
| **Name**         | A display name for this datasource.           | `Mora warehouse`                       |
| **Host**         | The Databricks workspace hostname.            | `adb-1234567890.1.azuredatabricks.net` |
| **HTTP path**    | The HTTP path to your SQL warehouse endpoint. | `/sql/1.0/warehouses/abc123`           |
| **Access token** | A Databricks personal access token (PAT).     | `dapi...`                              |
| **Catalog**      | The Unity Catalog name to query against.      | `main`                                 |

## Steps

1. Open **Settings → Datasources → New**.
2. Enter a name and select **Databricks** as the type.
3. Fill in the fields above.
4. Click **Test connection** to verify.
5. Click **Create**.

## Creating a personal access token

1. In your Databricks workspace, click your username in the top-right and select **Settings**.
2. Go to **Developer → Access tokens**.
3. Click **Generate new token**, give it a description (e.g. `Mora`), and set an expiration.
4. Copy the token, you won't be able to see it again.

## Finding the HTTP path

1. In Databricks, go to **SQL Warehouses**.
2. Click into your warehouse.
3. Go to the **Connection details** tab.
4. Copy the **HTTP path** value.

## Related

* [Catalog sync](/datasources/catalog)
* [Managing datasources](/datasources/manage)
