by ElevenFifty Labs
Data warehouses

BigQuery integration

Spark reads BigQuery tables and views into planning tools and business systems, and writes business data back to BigQuery, with checks on every run.

The connector

Category: Data warehouses. Status: Available on all plans. How Spark connects: direct, with a service account named spark that holds only the BigQuery roles a Circuit needs, in the Google Cloud project you choose.

What you can do with BigQuery in Spark

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

Spark reads 2 kinds of data from BigQuery:

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

What Spark writes to BigQuery

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 BigQuery 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.

Marketing and product data into the plan

Usage, acquisition and product metrics already in BigQuery feed driver-based plans without an export.

Every source landed in your warehouse

ERP, HR, spend and CRM data land in BigQuery tables without a separate pipeline project.

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

BigQuery 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 BigQuery 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 BigQuery?

A Google service account key. You need a Google Cloud project with BigQuery and permission to create a service account and its key.

Can Spark write to BigQuery?

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 account with BigQuery Job User on the project, BigQuery Data Viewer on the datasets you read, and BigQuery Data Editor on the dataset you load.

Where is the service account key kept?

Spark seals the JSON key in your company's own vault in your isolated tenant and never shows it again or writes it to logs. Delete the key file from your computer after you add it.

Connection essentials

  • Method: A Google service account key.
  • What you need: A Google Cloud project with BigQuery; Permission to create a service account and its key
  • What Spark asks for: Project ID; Default dataset (optional); Location (optional); Service account key (JSON)
  • Vendor documentation: cloud.google.com
  • BigQuery release notes: cloud.google.com
  • Change detection: a SELECT you write can read only the latest period or partition
  • Limits to know: on-demand queries are billed by data scanned, so filter by date or partition in the SELECT

Set it up in 4 steps

  1. In Google Cloud, create a service account named spark with the BigQuery Job User role on the project, BigQuery Data Viewer on the datasets you read, and BigQuery Data Editor on the dataset you load.
  2. Create a JSON key for it.
  3. In Spark, add a BigQuery Spark. Enter the project ID and paste the JSON key.
  4. Spark keeps the key in your company's own vault and runs SELECT 1 to check it works. Delete the key file from your computer afterwards.

Everything Spark reads from BigQuery

  • 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: BigQuery usage metrics into Pigment

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

  • Month: =TEXT([event_date],"yyyy-mm"), the plan's month
  • Customer segment: =XLOOKUP([plan_tier],SegMap[Tier],SegMap[Segment]), the plan segment
  • Active accounts: =[active_accounts], the driver 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.