Skip to content

Databricks

BUILDING Destination · built and tested, not yet verified against production accounts. Contact us before relying on it.

PortPilot loads each synced table into a Delta table in a Unity Catalog schema. Rows are uploaded to a Unity Catalog volume, loaded with COPY INTO on a SQL warehouse, and merged on the primary key with MERGE INTO. Tables and new columns are created automatically.

  1. Pick or create a SQL warehouse (serverless or pro). Note its Server hostname and HTTP path from the warehouse’s Connection details tab.

  2. Create a staging volume in the target schema:

    CREATE VOLUME <catalog>.<schema>.pipestream_staging;
  3. Create a service principal (recommended) or use a dedicated user, and grant it:

    GRANT USE CATALOG ON CATALOG <catalog> TO `<principal>`;
    GRANT USE SCHEMA, CREATE TABLE ON SCHEMA <catalog>.<schema> TO `<principal>`;
    GRANT READ VOLUME, WRITE VOLUME ON VOLUME <catalog>.<schema>.pipestream_staging TO `<principal>`;

    Plus Can use on the SQL warehouse. If PortPilot writes to existing tables, grant MODIFY and SELECT on them.

  4. Create a personal access token for the principal.

In the app, go to Destinations → New destination → Databricks and click Test connection after filling in:

Field Required Default Description
server_hostname Yes — Workspace host, e.g. dbc-123.cloud.databricks.com.
http_path Yes — SQL warehouse HTTP path.
access_token Yes — Personal access token. Stored write-only in the data plane’s secret store.
catalog Yes — Unity Catalog catalog for the tables.
schema Yes — Schema in that catalog.
staging_volume Yes — Name of an existing volume in catalog.schema, e.g. pipestream_staging.
  • Tables are named after the source table or stream and created on the first load. Table and column names keep the source spelling.
  • Tables are Delta tables in your Unity Catalog schema. Column names are quoted.
  • Objects and arrays are stored as JSON text in STRING columns.
  • New columns are added on later loads (COPY INTO … mergeSchema). Existing columns are never changed or dropped.
  • No PortPilot metadata columns are added.
PortPilot typeDestination type
integerBIGINT
numberDOUBLE
booleanBOOLEAN
objectSTRING
arraySTRING
stringSTRING
Write mode When What happens
Upsert Tables with a primary key COPY INTO a staging Delta table, MERGE INTO the target on the primary key, then drop the staging table.
Replace Full reads of tables without a primary key Truncate, then COPY INTO.
Append Incremental reads of tables without a primary key COPY INTO.

The staged file in the volume is removed after every load, whether it succeeded or not.

  • Personal access tokens only. OAuth machine-to-machine (service principal client secret) isn’t supported yet. Tokens expire: rotate before the expiry date.
  • Warehouse cost. Each load starts the SQL warehouse if it’s stopped. A small serverless warehouse with a short auto-stop keeps cost down.
  • Duplicate keys in one sync fail the upsert. Delta rejects a MERGE where two source rows match the same target row. This can happen with sources that emit the same record twice in one sync.
  • Nested data is JSON text. Parse it with from_json or the : path syntax.
  • The volume must already exist in the same catalog and schema; PortPilot doesn’t create it.