Databricks integration
Connect a Databricks SQL warehouse to Softr with a personal access token or a service principal, and use its tables in your apps and workflows.
Connect a Databricks SQL warehouse to Softr. Your apps can show its tables, and your workflows can read its records. Softr connects to the warehouse directly, so your data stays in Databricks.
For blocks, field types and workflow actions, see SQL databases.
Before you connect
From your SQL warehouse in Databricks, open the Connection details tab. Copy the Server hostname and the HTTP path.
Then choose how Softr signs in:
| Method | What you need |
|---|---|
| Personal access token | A token from Settings, Developer, Access tokens in Databricks |
| Service principal | The client ID and an OAuth secret with the all-apis scope. Give the service principal Can use on the SQL warehouse, and USE CATALOG, USE SCHEMA and SELECT on your data |
Connect Databricks
- In the Softr Studio dashboard, select Integrations in the left menu.
- Select Connect new.
- In the Select an integration window, select Databricks.
- Fill in the fields:
- Name: a name to recognize the connection.
- Server hostname: for example
dbc-a1b2c3d4-e5f6.cloud.databricks.com. - HTTP path: for example
/sql/1.0/warehouses/abcdef1234567890. - Service principal client ID (optional): leave it empty to use a personal access token.
- Access token / client secret: your personal access token, or the service principal’s OAuth secret.
- Default catalog (optional): limits Softr to one catalog.
- Select Connect.
Use Databricks in an app or a workflow
- Add the connection to your app or workflow, as for any SQL database.
- Select the Databricks connection.
- Choose the Database, then the Schema, then the table.
FAQ
Which plan do I need for Databricks?
Databricks is available on the Enterprise plan.
Should I use a personal access token or a service principal?
A personal access token signs in as you. A service principal signs in as a separate identity that you control in Databricks. Use a service principal for a connection that the whole team relies on.
Can I limit what Softr sees?
Yes. Set a Default catalog to limit Softr to one catalog. With a service principal, grant access only to the schemas and tables you need.