Snowflake to Databricks migration: a step-by-step plan with an agent doing the heavy lifting
Six steps from inventory to cutover, and which parts an AI coding agent can safely run
A Snowflake to Databricks migration is six pieces of work: inventory what you have, translate the SQL, copy the data, validate it, run both platforms in parallel, then cut over. Databricks documents Lakehouse Federation for querying external systems in place, and Snowflake documents Iceberg tables for exposing data in an open format. Both shorten the data-copy step. Most of the effort sits in the other five steps, and that is where an AI coding agent earns its keep.
Key Takeaways
- •A Snowflake to Databricks migration breaks into six steps: inventory, SQL translation, data copy, validation, parallel run, cutover.
- •The data copy is usually the easiest step. SQL translation, validation and downstream dependency mapping consume most of the calendar time.
- •An agent working through MCP from Claude Code or Cursor can run inventory, translation and validation checks. Humans should keep the cutover decision and any destructive action.
- •Run both platforms in parallel until row counts, aggregates and downstream dashboards match for a full business cycle, such as a month-end close.
- •Our opinion: migrate by domain, not by table. A domain is the smallest unit you can validate end to end and roll back.
Snowflake to Databricks migration: the plan in six steps
Before the steps, decide what you are optimizing for. Some teams move for a single lakehouse covering ML and BI. Others move for cost or open table formats. The goal changes the plan: if you want open formats, you may land data as Delta or Iceberg and keep Snowflake reading it for a while. If you want a clean break, you copy and cut over by domain. We assume the second case below, with notes where the first differs.
We also assume your engineers already work in Claude Code or Cursor. Every Data Workers agent is an MCP server, so the steps below are prompts you run from the terminal, not a new platform to learn. The MCP spec defines how those tools are exposed to the client.
Step 1: Inventory every object, query and consumer
List databases, schemas, tables, views, stages, streams, tasks, stored procedures, UDFs, roles and grants. Then add the part most plans skip: who and what reads each object. Query history shows which tables are queried and which have gone untouched for 90 days. Those cold tables are your cheapest wins, because you can archive them instead of migrating them.
This is a good first job for an agent. Our Connectors Agent reads Snowflake metadata through a read-only connection, and the OSS edition (dw-claw, Apache 2.0) is read-only by default, so an inventory run cannot change anything. Prompts we see teams start with:
- •"What tables haven't been queried in 90 days?"
- •"Who has access to PII columns in analytics?"
- •"What's the blast radius if I drop this column?"
- •"How much are we spending on Snowflake this month?"
Output of this step: a ranked list of domains, each with its tables, owners, consumers, PII columns and a rough size. Pick the smallest domain with real consumers as the pilot.
Step 2: Map Snowflake constructs to Databricks equivalents
Most ANSI SQL carries over. The friction is in platform-specific constructs. This table is a starting map, not an exhaustive one. Check each pairing against current documentation from both vendors before you commit.
| Snowflake construct | Typical Databricks target | What to check |
|---|---|---|
| Databases and schemas | Unity Catalog catalogs and schemas | Naming, ownership and grant model |
| Tables | Delta tables (or Iceberg, if you chose open formats) | Clustering and partition strategy |
| Streams and tasks | Streaming tables, jobs or workflows | Scheduling semantics and idempotency |
| Semi-structured VARIANT columns | Struct, map or string types, or VARIANT where supported | Path expressions and null handling |
| Stored procedures and UDFs | SQL or Python functions and notebooks | Procedural logic rarely translates one to one |
| Roles and grants | Unity Catalog privileges and groups | Inherited grants and masking policies |
The unit of work is not "a table" but "a table plus the grants, masks and consumers around it." Treat governance objects as first-class migration items. A table that lands without its row-level policy is a compliance incident, not a partial success.
Step 3: Translate SQL, procedures and pipelines
This is the step that decides your schedule. Views and transformation SQL are mechanical to convert but numerous. Procedural code, dynamic SQL and tasks need judgment. Our Migration Agent analyzes legacy SQL and ETL and emits modern targets, such as SQL models for the new platform. It runs in your coding agent, so a reviewer sees each change as a normal diff.
We recommend this loop for every object: the agent proposes a translation, runs it against a sample on the target, compares output to the Snowflake result, and only then opens the change for human review. Anything it cannot verify, it flags instead of guessing. That last behavior matters more than raw translation accuracy. A flagged object costs an engineer ten minutes. A silently wrong one costs a finance restatement.
Our Schema Agent handles the adjacent job: it detects column-level drift while both systems are live and projects downstream impact. During a migration the source schema keeps changing, so a translation that was right on Monday can be wrong by Friday.
Step 4: Copy the data
You have three realistic options. First, query in place with federation while you translate, which avoids copying until you are ready. Second, export to cloud storage and load into Delta tables, the usual path for large historical tables. Third, expose Snowflake tables as Iceberg and read them from Databricks, which suits teams that want a gradual move. Each trades speed against how long both platforms stay coupled.
Whichever you pick, load history and incremental changes separately. Backfill the history once, then switch the domain's pipelines to write to the target and replay any changes since the snapshot. Record the snapshot timestamp. Validation in the next step depends on it.
Egress and transfer costs are real and vary by cloud and region. We do not quote numbers here because they depend on your contracts. Ask your cloud provider for a figure before you plan a full-history copy.
Step 5: Validate before anyone trusts the new tables
Validation is where agents help most, because the work is repetitive and the cost of skipping it is high. For each migrated table, check row counts, per-column null rates, min and max values, distinct counts for keys, and aggregate checksums over business-relevant slices. Then check the things that break quietly: timestamp time zones, decimal precision, string collation and case sensitivity of identifiers.
- •"Why did row counts drop 40% overnight?" is the question to ask when a load diverges from the source.
- •"Is the customer_id join safe after the migration?" checks key uniqueness and join fan-out on the target.
- •"Show freshness scores for all gold tables." confirms the new pipelines are landing on schedule.
- •"Why did data quality score drop below SLA?" traces a regression to the table or step that caused it.
Save every validation result. When someone asks in three months whether the migrated revenue table matched, you want evidence, not recollection. Our audit trail feature on the Pro tier records agent actions for exactly this reason.
Step 6: Run in parallel, then cut over by domain
Run both platforms until the domain has passed a full business cycle. For finance data that means a month-end close. Compare dashboards and reports side by side, not just tables. Repoint BI tools, notebooks and reverse-ETL jobs one consumer at a time, and keep the Snowflake path warm for a defined rollback window.
Cutover is a decision, not a task. We recommend a human approves it, with the agent supplying the evidence: validation results, consumer repoint status, and open flags. Our Pro tier adds approval workflows for this. After the window closes, revoke Snowflake access for the domain, archive what you must keep, and delete what you do not.
What an agent should and should not do in a migration
Agents are strong at inventory, translation drafts, comparison queries and evidence gathering. They should not decide to drop a source table, change production grants, or declare a domain done without a person signing off. Our default is read-only, with writes enabled per domain. This is the autonomy dial in our Autonomous Data Conductor: you raise autonomy for a domain only after it has earned trust on the previous one.
We covered how our agents keep the catalog current in a separate post, and the same idea applies here. A migration is the moment your metadata is most likely to go stale, so the catalog should be updated by the migration itself, not by a cleanup project afterward.
If you are weighing a move to a different platform more broadly, our guide to moving data platforms to agentic platforms explains the target operating model: pipelines, governance, quality and schema handled by coordinated agents rather than a queue of tickets.
Frequently Asked Questions
How long does a Snowflake to Databricks migration take? It depends on the number of objects and how much procedural code you have, so we do not give a single figure. Plan around the pilot domain: once one domain has gone through all six steps, you can extrapolate from your own numbers instead of a vendor estimate.
Can I migrate without downtime? Yes, if you run both platforms in parallel and cut over consumers one at a time. The cost is paying for both platforms during the overlap, so keep the overlap short by migrating domain by domain.
Should I convert to Delta or Iceberg tables? It depends on who else needs to read the data. If your downstream tools read Delta or you stay inside Databricks, Delta is the simpler path. If other engines need access, Iceberg keeps the format open. Check each platform's current documentation for supported features before choosing.
Can an AI agent do the whole migration? No, and we would not trust one that claimed to. Agents can inventory, translate, test and gather evidence quickly. People should own cutover, destructive actions and any object the agent flags as uncertain.
Does the agent need write access to Snowflake or Databricks? Not for the inventory, translation and validation work. Those run read-only. Writes to the target are needed for the load and cutover steps, and we recommend enabling them per domain with approval.
Where does our data go when an agent reads it? Data Workers runs in your infrastructure, and data does not leave it. The OSS edition runs locally. Enterprise adds VPC and on-prem deployment, plus SSO/SAML and tenant isolation.