by ElevenFifty Labs
Data warehouses

Databricks integration

Spark reads Databricks tables and views into planning tools and business systems, and writes business data back into Databricks, so finance and data teams share 1 copy.

The connector

Category: Data warehouses. Status: Available on all plans. How Spark connects: direct, through a Databricks SQL warehouse, with a service principal that signs in with an OAuth secret and has only the warehouse and Unity Catalog access you grant.

What you can do with Databricks in Spark

Read tables, views or the results of a SELECT you write from a Databricks SQL warehouse, and load them into Pigment, Anaplan and Workday Adaptive Planning or a business system. Load ERP, HR, CRM and spend data into Delta tables for the data team.

Spark reads 2 kinds of data from Databricks:

  • Every row of a table or view you name
  • Rows of a SELECT you write

What Spark writes to Databricks

Writes only happen when you tick the permission as you add the Spark. Leave them unticked for a read-only connection.

  • Loads the Circuit's output into a table (made if missing): add rows, replace them, or merge on key columns.

Common use cases for Databricks data, and why each matters

Warehouse models into the plan

Revenue, usage and margin models the data team built go straight into the planning tool, mapped to plan lists in Excel syntax.

Every source landed in your lakehouse

ERP, HR, spend and CRM data land in Delta tables without a separate pipeline project, ready for the data team's models.

Planning data back to BI

Plan and forecast versions land next to actuals, so BI compares them in 1 place without CSV uploads.

Why it's hard without Spark

Databricks is where the data team models the business, but the planning tool, the ERP and the HR system all sit outside it. Finance usually waits for the data team to build a pipeline into the planning tool, then waits again when a column changes, and the data team would rather not own planning loads at all. Spark lets the business own the feed on top of access the data team grants, checks the mapped fields on every run, and stops a load with a clear reason when the schema changes instead of loading blanks.

How Spark handles Databricks data

  • Spark does not store the business data it moves: rows pass through memory during a run.
  • Each customer has its own isolated tenant.
  • Credentials are sealed in your company's own vault, never shown again or logged.
  • Anything that writes to a system needs the permission ticked when the Spark is added.

More on the Spark trust center.

Teams that use it

Data and analytics teams and Finance and FP&A. See Spark for data teams.

Questions

How does Spark connect to Databricks?

A service principal client ID and OAuth secret. You need a Databricks workspace admin and a SQL warehouse.

Can Spark write to Databricks?

Yes, when you allow it. Loads the Circuit's output into a table (made if missing): add rows, replace them, or merge on key columns.

What access does Spark need?

A service principal with CAN USE on the SQL warehouse, SELECT in Unity Catalog on what you read, and CREATE TABLE and MODIFY on the schema you load.

Which compute does Spark use?

The SQL warehouse you choose, so you control its size, cost and auto-stop.

Does Spark replace our ELT tool?

No. Keep your ELT tool for analytics ingestion. Spark moves the business-owned feeds into and out of planning tools and business systems.

Where are the credentials kept?

Sealed in your company's own vault in your isolated tenant. Spark never shows them again or writes them to logs.

Connection essentials

  • Method: An app client ID and secret.
  • What you need: A Databricks workspace admin; A SQL warehouse
  • What Spark asks for: Workspace address; SQL warehouse ID; Catalog (optional); Schema (optional); Service principal client ID; OAuth secret
  • Vendor documentation: docs.databricks.com
  • Databricks release notes: docs.databricks.com
  • Change detection: a SELECT you write can read only the latest period, or rows changed since a date
  • Limits to know: every query runs on your SQL warehouse, so a small warehouse with auto-stop keeps cost low

Set it up in 4 steps

  1. In Databricks, add a service principal named spark (Settings, Identity and access) and create an OAuth secret for it.
  2. Give it CAN USE on the SQL warehouse, and in Unity Catalog SELECT on what you read and CREATE TABLE and MODIFY on the schema you load.
  3. In Spark, add a Databricks Spark. Enter the workspace address and the warehouse ID (from its Connection details), then the client ID and secret.
  4. Spark keeps them in your company's own vault and runs SELECT 1 to check they work.

Everything Spark reads from Databricks

  • Every row of a table or view you name
  • Rows of a SELECT you write

What Spark writes

  • Loads the Circuit's output into a table (made if missing): add rows, replace them, or merge on key columns.

Example Circuit: Databricks margin model into Anaplan

Each mapping is written in Excel syntax, so finance can read and change it.

  • Period: =TEXT([month_start],"yyyy-mm"), the model's month
  • Product line: =XLOOKUP([sku],ProductMap[SKU],ProductMap[Line]), the plan product line
  • Gross margin: =[net_revenue]-[cogs], the metric value
  • Version: ="Actuals", the plan version

Checks to set on this feed

  • Totals tied out between the query and the destination after every load
  • Flag schema changes before they break a load
  • Merge on key columns or replace only the period in the window, never the whole table by accident

How setup works

  1. Start a Spark. Sign in or paste a key. Spark checks the access the key grants and warns before it expires. If someone else owns the system, Spark sends them a setup request with the security context they need.
  2. Build a Circuit with Ask Spark. Describe the feed in plain English. Ask Spark drafts the mapping in Excel syntax and waits for your approval.
  3. Let it run. On a schedule, when a file lands, or when the source changes, with checks before anything is written and alerts by email, Slack, Teams or the Spark mobile app.

Security

Each customer runs in its own isolated tenant with its own encryption key and credential vault. Business data passes through memory during a run and is never stored. Writes to systems of record need their own permission, and ERP journals arrive as drafts by default. See Spark security.

See it with your own systems

Book a 30-minute demo built around the systems you use. Spark starts at $5,000 a year, with every connector on every plan. See pricing, security and the connector library.