Skip to content
Integration

Databricks integrations and automation

Say what should happen in Databricks, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.

Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.

No credit card needed.

Databricks on Whenever

About Databricks

Databricks is the lakehouse company, helping data teams solve the world's toughest problems with unified analytics platform for big data and AI.

How Whenever connects

Through its API, with the provider’s credentials and permissions.

Build it from your AI client

Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the Databricks workflow. It then runs on Whenever, with the chat closed.

Set up the Whenever MCP server

Plan your Databricks workflow

In most companies Databricks holds the numbers other tools want: product usage, revenue models, churn scores. Automating it is mostly about getting a finished result out of the lakehouse and into the place someone acts on it, or starting a job when something upstream is ready. Two parts of the Databricks REST API cover this. The SQL Statement Execution API runs a SQL query on a SQL warehouse and returns rows, and the Jobs API triggers an existing job and reports how each run went.

The catalogue template runs a usage query against Databricks each weekday morning, picks accounts whose weekly active usage crossed a threshold, adds a note to the matching HubSpot company, and posts the list to a Slack channel, flagging each account at most once a week. The query and threshold are supplied at setup, so the logic lives in SQL your data team already maintains rather than in a copied export.

Statement execution has a wait timeout of up to fifty seconds; a slower query keeps running and its status has to be checked until it finishes. Large results come back in chunks or as external links instead of inline rows. A serverless or auto-stopping warehouse may also need time to start, so the first run of the morning can be slower. For anything heavy, schedule a Databricks job to build a small summary table and have the workflow read that table.

Authenticate with a service principal using OAuth machine-to-machine credentials, or with a personal access token if your workspace allows them, and grant it only the catalogs, schemas and warehouse it needs through Unity Catalog. A workspace locked to private connectivity with no public access can't be reached from the hosted runtime.

Databricks workflow examples

Starter briefs to set up with your accounts, not finished workflows.

Turn product usage into sales signals

The catalogue template: a supplied SQL query selects accounts, HubSpot gets a note and Slack gets the list.

Build this workflow

Start a Databricks job when a file lands

An event-driven trigger for an existing job, with the run result reported back.

Build this workflow

Daily failed-run report across jobs

Reads the Jobs API run history so failures are noticed before stakeholders ask.

Build this workflow

Databricks workflows to start from

Real briefs for this app. Pick one; Whenever writes it for your accounts.

Related apps for your workflows

All integrations

Databricks FAQs

Which Databricks API runs a SQL query from outside the workspace?

The SQL Statement Execution API. It runs a statement on a SQL warehouse you specify and returns the result inline, in chunks or as links, depending on the size and disposition you request.

What if my query takes longer than the wait timeout?

The statement keeps running and the API returns its id; the workflow then checks the statement status until it succeeds or fails. For long work, precompute a summary table in a scheduled job.

Should I use a personal access token or a service principal?

Databricks recommends OAuth with a service principal for automation, so access isn't tied to one person's account. Grant it only the Unity Catalog objects and warehouse the workflow uses.

Can a workflow trigger an existing Databricks job?

Yes. The Jobs API run-now call starts a job by id with optional parameters, and the runs endpoints report its state and result.

Will a stopped SQL warehouse start for the query?

Submitting a statement to a stopped warehouse starts it, which adds startup time and compute cost. Factor that into how often the schedule runs.

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.