Databricks
BUILDING Destination · built and tested, not yet verified against production accounts. Contact us before relying on it.
Overview
Section titled “Overview”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.
Before you connect
Section titled “Before you connect”-
Pick or create a SQL warehouse (serverless or pro). Note its Server hostname and HTTP path from the warehouse’s Connection details tab.
-
Create a staging volume in the target schema:
CREATE VOLUME <catalog>.<schema>.pipestream_staging; -
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
MODIFYandSELECTon them. -
Create a personal access token for the principal.
Connect
Section titled “Connect”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. |
Schema
Section titled “Schema”- 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
STRINGcolumns. - New columns are added on later loads (
COPY INTO … mergeSchema). Existing columns are never changed or dropped. - No PortPilot metadata columns are added.
| PortPilot type | Destination type |
|---|---|
| integer | BIGINT |
| number | DOUBLE |
| boolean | BOOLEAN |
| object | STRING |
| array | STRING |
| string | STRING |
Sync behavior
Section titled “Sync behavior”| 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.
Common gotchas
Section titled “Common gotchas”- 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
MERGEwhere 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_jsonor the:path syntax. - The volume must already exist in the same catalog and schema; PortPilot doesn’t create it.