by ElevenFifty Labs
Data warehouses

Snowflake integration

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

The connector

Category: Data warehouses. Status: Available on all plans. How Spark connects: direct, with a service user that signs in with a key pair, a role limited to the schemas you choose, and the warehouse you name.

What you can do with Snowflake in Spark

Read Snowflake tables or views, filter by period or key, and load them into Pigment, Anaplan and Workday Adaptive Planning or another system. Write ERP, HR, CRM and spend data into Snowflake tables for the data team.

Spark reads 2 kinds of data from Snowflake:

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

What Spark writes to Snowflake

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 Snowflake data, and why each matters

Warehouse models into the plan

Revenue, usage or margin models the data team built go straight into the planning tool.

Business data into the warehouse

ERP, HR and spend data land in Snowflake without a separate pipeline project.

Planning data back to BI

Plan and forecast exports land in Snowflake next to actuals, so BI compares them in 1 place.

Reverse ETL for finance

Warehouse metrics flow to the systems finance uses, with checks.

Why it's hard without Spark

Finance usually waits for the data team to build a pipeline into the planning tool, then waits again when a column changes. Data teams don't want planning loads in their queue. Spark lets finance own the planning feed with a role the data team scopes, and flags schema changes before they break a load.

How Spark handles Snowflake 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.

Questions

How does Spark connect to Snowflake?

A Snowflake user with a key pair. You need a Snowflake user for Spark with key-pair authentication and a role that can read the tables you need, and create tables in the schema you load.

Can Spark write to Snowflake?

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.

Does Spark replace our ELT tool?

No. Spark complements it, moving business feeds the data team doesn't want to own.

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: A Snowflake user with a key pair.
  • What you need: A Snowflake user for Spark with key-pair authentication; A role that can read the tables you need, and create tables in the schema you load
  • What Spark asks for: Account identifier; User; Warehouse; Database; Schema; Role (optional); Private key (PEM); Key passphrase (if the key has one)
  • Vendor documentation: docs.snowflake.com
  • Snowflake new features: docs.snowflake.com
  • Change detection: rows changed since the last run, by a date or key column you name
  • Limits to know: every query uses warehouse credits, so delta reads and the warehouse you pick keep cost visible

Set it up in 4 steps

  1. Make a key pair: "openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out spark_key.p8 -nocrypt", then "openssl rsa -in spark_key.p8 -pubout -out spark_key.pub".
  2. In Snowflake, run ALTER USER spark SET RSA_PUBLIC_KEY='<the key in spark_key.pub, without its header lines>';
  3. In Spark, add a Snowflake Spark. Enter the account identifier, user, warehouse, database and schema, and paste the contents of spark_key.p8.
  4. Spark keeps the key in your company's own vault and runs SELECT 1 to check it works. Delete spark_key.p8 from your computer afterwards.

Everything Spark reads from Snowflake

  • 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: Snowflake models into Pigment, and plan data back

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

  • Period: =TEXT([MONTH_START],"yyyy-mm"), the plan's month
  • Product: =XLOOKUP([SKU],ProductMap[SKU],ProductMap[Plan]), the plan product
  • Revenue: =[NET_REVENUE], the metric value
  • Version: ="Actuals", the plan version

Checks to set on this feed

  • Totals tied out between the Snowflake query and the plan after every load
  • Flag schema changes before they break a load
  • Replace only the period or keys in the window, never the whole table

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.