All docs
/
Export
/
Databricks integration

Databricks integration

Import, insert, update, upsert or look up rows in Databricks.

Overview

Databricks is a unified data and analytics platform for managing, transforming, and querying data at scale.

With this integration, you can connect to your Databricks workspace and perform SQL operations — such as importing, inserting, updating, upserting, or looking up rows — all directly from your Clay table.

Connecting to Databricks

Clay supports two methods for authenticating your Databricks account. You can choose the one that fits your organization's setup when adding a new connection or when reconnecting an existing one.

  • Service Principal — the recommended method. You connect via OAuth M2M (machine-to-machine) with a Service Principal for secure, server-to-server authentication.
  • Personal Access Token — a simpler method using a personal access token. No OAuth configuration is required.

Service Principal

Connect to Databricks using OAuth M2M with a Service Principal for secure, server-to-server access.

  1. In the home sidebar, click SettingsConnections.
  2. Click Add connection and search for Databricks.
  3. Under Service Principal, fill in the following fields:
    • Name your connection: A descriptive name for this connection.
    • Use static IP?: Optional. Use a static IP when connecting to ensure that enrichments are run from a static list of IP addresses, which can be useful for allow-listing.
    • Workspace URL: Your Databricks workspace URL (e.g. https://adb-1234567890123456.7.azuredatabricks.net/).
    • Client ID: The client ID from your Databricks Service Principal.
    • Client secret: The client secret from your Databricks Service Principal.
  4. Click Authenticate to save the connection.

Personal Access Token

Connect to Databricks using a Personal Access Token.

  1. In the home sidebar, click SettingsConnections.
  2. Click Add connection and search for Databricks.
  3. Under Personal Access Token, complete the authentication flow.
    • You'll need to generate a Personal Access Token in your Databricks workspace. See Databricks documentation for instructions.

Setting up the Databricks integration

  1. While in a Clay table, click Add enrichment and search for Databricks.
  2. Under Integrations, select one of the Databricks options.
  3. In the modal, you will be asked to Select Databricks account.
    • If you haven't already connected your Databricks account, click + Add account and go through authentication.

Using the Databricks integration

Source Import from Databricks

Use this action to pull data from a Databricks table into Clay.

Inputs

  • Databricks SQL warehouse
  • SQL query

Action Lookup row

Use this action to check if a row exists in a Databricks table.

Inputs

  • Databricks SQL warehouse
  • SQL query

Action Insert row

Use this action to insert a new row into a Databricks table.

Inputs

  • Databricks SQL warehouse
  • Databricks catalog
  • Databricks schema
  • Databricks table
  • Column values to insert

Action Update row

Use this action to update existing rows in a Databricks table.

Inputs

  • Databricks SQL warehouse
  • Databricks catalog
  • Databricks schema
  • Databricks table
  • WHERE clause
  • Column values to update

Action Upsert row

Use this action to insert or update a row in a Databricks table using a unique identifier.

Inputs

  • Databricks SQL warehouse
  • Databricks catalog
  • Databricks schema
  • Databricks table
  • Unique key column
  • Column values to insert or update

Run settings

Explore other docs

Gen AI

Guide: Using Clay plugin

Go-to-market plays you can run from a coding agent with the Clay plugin — source your market, score it for fit, and prioritize who gets worked first.

View article
Gen AI

Audiences for agents and the CLI

Read, segment, and manage your workspace's people, companies, and deals from the Clay CLI — and from the Clay agents that run it for you.

View article
Getting started

Clay MCP for Reps vs. Agent Plugin

Choose between MCP for Reps and the Clay Agent Plugin based on who will be using it and how much your ops team needs to approve in advance.

View article
Enrich

Enrichment in Workflows

Enrich an Audiences segment through a guided workflow that opens with its trigger and write-back step already configured.

View article
Export

Getting started with Sequencer

Sequencer runs cold email campaigns at scale from your Audiences data, handling sending infrastructure, copy, and deliverability in one place.

View article
Export

Connect your own email accounts

Connect email accounts you already own — Google Workspace, Microsoft 365, or any mailbox that supports SMTP — and use them as sending accounts for your campaigns.

View article
Export

Email warmup

What email warmup does, how it differs on purchased and self-connected accounts, and why you'll see unfamiliar emails while it runs.

View article

Other popular resources

Experts

Find a Clay Expert

Explore our network of Clay experts and agencies.

View experts
Community

Join our slack community

Find help in our slack community, and support channels.

Go to slack
Cohorts

Join a cohort, learn Clay fast!

The faster way to master Clay. Sign in if you're enrolled in a cohort (current or past) or apply!

Learn more about cohorts
Talents

Hire GTME Talent

Find and connect with GTM talent who've demonstrated expertise in building advanced workflows

Explore GTME talents