Skip to main content

Databricks

The Databricks connection lets FunnelStory run SQL against Databricks SQL warehouses (or SQL endpoints) so data models can read from Unity Catalog–backed tables and views your team already curates.

What FunnelStory uses it for

  • Data models — Queries executed through the Databricks SQL interface you configure.

Before you connect

FunnelStory connects with a Databricks service principal and a personal access token created for that principal (not the interactive UI token flow for end users). At a high level:

  1. Create a service principal in Databricks account settings.

Databricks account console — create service principal

  1. Create a group and add the service principal to it.

Databricks account console — group with service principal

  1. Allow the service principal to use tokens (token management permission).

Databricks — allow service principal to use tokens

  1. Use the Databricks CLI (per Databricks PAT docs) to create an on-behalf-of token for the service principal; keep the token_value for FunnelStory.

  2. In the Databricks SQL editor, grant the group access to the catalog or objects the principal should read (tighten grants to least privilege in production).

Also note the server hostname (workspace SQL API host), HTTP path for your SQL warehouse (from SQL WarehousesConnection details), and optional default catalog / schema.

Add the connection in FunnelStory

  1. Open Configuration → ConnectionsAdd connection, then choose Databricks.

  2. Complete the fields in the connection form:

Databricks connection form and SQL warehouse connection details

FieldDescription
Connection nameDisplay name.
Server hostnameDatabricks workspace SQL API host.
HTTP pathPath to the SQL warehouse (from Databricks SQL settings).
TokenPersonal access token.
Catalog / Schema (optional)Defaults for unqualified table names if the form includes them.
  1. Click Validate, then Add Connection.

After you connect

Use this connection in models with Databricks SQL. See Writing queries.