COPY INTO — the lakehouse equivalent of Snowflake PUT + COPY.
Supported sync modes
When Databricks is the destination, source connectors that support CDC (PostgreSQL, MySQL, MongoDB, SQL Server, Oracle, and others) can stream changes into Databricks tables.
Connection details
How to connect
Step 1 — SQL warehouse connection details
- In Databricks, open SQL Warehouses.
- Select (or create) a warehouse and start it if it is stopped.
- Open Connection details.
- Copy Server hostname. The HTTP path usually includes the warehouse ID (e.g.
/sql/1.0/warehouses/<id>).
Step 2 — Access token
Create a token for a user or service principal that has the privileges below:- Settings → Developer → Access tokens → Generate new token, or
- Create a service principal and generate a token for it (recommended for production).
Step 3 — Connect in Zwiron
- Go to Connections → Add Connection → Databricks
- Fill in host, warehouse ID, token, Unity Catalog name, and schema
- Click Test Connection
- Save the connection
Privileges (Unity Catalog)
Grant the connecting identity at least:
Example (adjust names):
How Zwiron writes to Databricks
For destination loads, Zwiron:- Ensures the catalog.schema exists (
CREATE SCHEMA IF NOT EXISTS) - Creates a Unity Catalog volume
__zwiron_stagingwhen needed - Writes Parquet files and PUTs them to
/Volumes/{catalog}/{schema}/__zwiron_staging/... - Runs
COPY INTOinto the target table (or a temp table for upsert) - For upsert, merges into the target with primary keys, then cleans staging files
Schema mapping
Zwiron creates tables automatically when they do not exist and can evolve schemas (add/widen columns) according to job settings.
Cloud coverage
The same connection shape works on Databricks workspaces hosted on AWS, Azure, and GCP. Use the hostname and SQL warehouse from that cloud’s workspace.Troubleshooting
Permission denied creating volume or COPY INTO
Permission denied creating volume or COPY INTO
Confirm the identity has
CREATE VOLUME on the schema and write access on __zwiron_staging. Legacy Hive-only setups without volume support cannot use the current staging path — use a Unity Catalog–enabled workspace.Warehouse stopped / connection timeout
Warehouse stopped / connection timeout
Start the SQL warehouse in Databricks, then retry Test Connection. Auto-stop warehouses must be running for the first sync.
Invalid access token
Invalid access token
Regenerate the PAT or service principal token. Ensure the token belongs to an identity that can use the selected warehouse (
CAN USE).Catalog or schema not found
Catalog or schema not found
Create the catalog/schema in Unity Catalog, or grant
CREATE SCHEMA so Zwiron can create the schema on connect. Check that Catalog in Zwiron matches the UC name exactly.Related
- Connectors overview
- PostgreSQL → Databricks pipelines
- HubSpot → warehouse sync
- Network access / egress IPs for hosted mode