Operating · Chapter 22
Databricks migration guide: from a warehouse to the lakehouse
Reviewed by TechFabric engineers. How we write this guide →
A Databricks migration moves a legacy warehouse's tables, SQL, ETL jobs and every report that reads them onto Delta tables governed by Unity Catalog, then switches the old system off. Databricks' migration tool is Lakebridge, a free Databricks Labs project in three parts: the Analyzer inventories and grades the source estate, the transpilers convert its SQL and ETL, and the Reconciler proves the data matches. Lakehouse Federation covers the rest of the mechanical work by letting Databricks query the old warehouse in place while you move.
The tools cover the part that goes well. Migrations from Synapse, Snowflake, Teradata, Oracle or SQL Server overrun on business rules buried in stored procedures and on moving consumers, and this chapter is how we'd plan for both, with the Lakebridge commands as they stand in October 2026.
The short version
A migration looks like one project and behaves like three. Translating table definitions and queries is well automated and goes roughly as fast as the tools promise. Recovering business rules buried in stored procedures nobody documented is slow, needs experienced people, and is where migrations overrun. Persuading every report and downstream team to move across is not technically difficult but takes calendar time you do not control. The most useful thing a sponsor can do is fund the second and third categories as generously as the first, because a plan assuming translation is the project will be revised by month three. The second is to insist on a date for switching the old system off, since an estate running both pays twice for a benefit it receives once.
The three kinds of migration work #
The three behave differently, carry different risk, and need different people.
Mechanical translation covers table definitions, straightforward SQL, and data movement. It's genuinely well automated, scales with tooling rather than headcount, and is the part vendor demonstrations show. On Databricks that tooling is Lakebridge, covered in the next section but one. Expect this part to go roughly as promised.
Semantic reconstruction covers stored procedures encoding business rules that exist nowhere else, scheduling dependencies implied by a legacy orchestrator's configuration, and definitions living inside a BI tool's semantic layer. None of it is written down, several of the people who wrote it have left, and the only reliable recovery is to read the code and ask questions. This is where migrations overrun.
Consumer migration covers every report, extract, application, and human process reading from the old system. It is not technically hard and it is politically slow, because each consumer has an owner with their own priorities and their own definition of ready.
Which domain should move first? #
We'd migrate by data domain rather than by layer, and run the old and new systems in parallel for each domain until reconciliation passes.
Migrating by layer, meaning all bronze then all silver then all gold, sounds orderly and delivers nothing until the last step, so the project carries maximum risk for maximum duration. Migrating by domain delivers a working, verified domain early, which buys the credibility to keep going. The first domain also absorbs the platform setup work described in Unity Catalog and CI/CD, so later domains move faster and an estimate built from domain one errs in a useful direction.
The first domain should matter enough that finishing it means something, be self-contained enough not to drag half the estate behind it, and be owned by someone who wants the migration to succeed. Picking the largest and most contested domain first, on the grounds that it's the hard one, is an expensive instinct we'd argue against.
Parallel running is expensive and it is not optional. Reconciliation between old and new is the only evidence that the semantic reconstruction was correct, and it needs enough cycles to catch month-end, quarter-end, and seasonal edge cases. A domain that reconciles for a week has demonstrated less than teams think.
Which Databricks migration tools do what? #
Lakebridge is installed as a Databricks CLI extension and runs from your laptop or a build agent. Each part answers a different question, and only the middle one converts anything.
| Part | What it does | Sources it covers (October 2026) | Command |
|---|---|---|---|
| Analyzer | Reads exported SQL or ETL code and grades every object LOW, MEDIUM, HIGH or VERY HIGH, with the dependencies between them, into an Excel report | About thirty, including SQL Server, Synapse, Snowflake, Teradata, Oracle, Netezza, Redshift, BigQuery, SSIS, DataStage, Talend and SAS | analyze |
| Transpilers | BladeBridge and Morpheus convert SQL deterministically; Switch, marked Experimental, uses an LLM | Morpheus: SQL Server, Synapse, Snowflake. BladeBridge: SQL Server, Synapse, Oracle, Teradata, Netezza, DataStage. Switch: all of those plus MySQL and PostgreSQL | transpile, llm-transpile |
| Reconciler | Compares schema, row counts, row values or aggregates between source and Databricks, and stores the results in tables | Oracle, Snowflake, SQL Server, Redshift, Teradata, BigQuery, Databricks | reconcile, aggregates-reconcile |
The source lists come from the transpiler and analyzer pages. Two gaps are worth checking against your own estate before a plan relies on them: Snowflake SQL is converted only by Morpheus and Switch, and Informatica isn't listed by either the Analyzer or the transpilers.
# Databricks CLI already installed and authenticated (databricks auth login)
databricks labs install lakebridge
databricks labs lakebridge install-transpile
# Assessment: prompts for the source technology and anything else left out
databricks labs lakebridge analyze \
--source-directory ./export/split \
--report-file ./reports/synapse-assessment \
--generate-json true
# Conversion of SQL Server / Synapse T-SQL
databricks labs lakebridge transpile \
--source-dialect mssql \
--input-source ./export/split \
--output-folder ./transpiled \
--error-file-path ./transpiled/errors.log
# Reconciliation: configure the source connection and tables once, then run
databricks labs lakebridge configure-reconcile
databricks labs lakebridge reconcileStart with an inventory, not a guess #
We'd spend the first two weeks on assessment and not let anyone negotiate it away. A scope built by counting views and multiplying by a gut-feel hours figure is how a date gets sold that nobody can hit. The Analyzer's dependency report is what you sequence waves from. Two habits make it pay: split monolithic DDL files into one object per file first, so results come back per object rather than per file, and keep the JSON output (--generate-json) in a table so object counts and wave membership stay queryable instead of being copied into a spreadsheet by hand. Pin the Lakebridge version too, since a grade you can't reproduce in March is a grade nobody will defend.
Objects graded HIGH or VERY HIGH are the ones that need senior eyes after transpilation, and that list, rather than the conversion rate, is the honest size of the semantic work. Transpiled output marks what it couldn't convert, and those markers are the second list a reviewer works through.
How do you prove the migrated data matches? #
Row counts match far more often than values do, and value equality on a sample is weaker evidence than it feels. Lakebridge's Reconciler does the mechanical half of this, at schema, row and column level or on aggregates. We'd compare full aggregate profiles per column, including null rates, distinct counts, and distribution summaries, then compare exactly on a deterministic sample keyed by business identifier, and finally reconcile the handful of numbers the business actually reports.
The last of those is the one that matters politically. When the CFO's number matches, the migration is credible; when it does not, nothing else you demonstrate helps.
Reconciliation should be a scheduled job with stored history rather than a script somebody runs, because a trend of shrinking discrepancies persuades a steering committee better than one passing run, and because the same job becomes your regression test after cutover, turning migration evidence into the monitoring described in Observability.
Move consumers before data, with Lakehouse Federation #
Lakehouse Federation lets Databricks query the old warehouse in place, which changes the shape of a migration more than its speed. Query federation creates a Unity Catalog connection and a foreign catalog and pushes queries down over JDBC, read-only, with Azure Synapse, SQL Server, Snowflake, Teradata, Oracle, Redshift and BigQuery among the sources (query federation). Catalog federation is the other mode: for Snowflake it reads Snowflake-managed Iceberg tables straight from cloud storage on Databricks compute, and tables that aren't Iceberg fall back to query federation.
The move we'd make with it: repoint a dashboard at the Unity Catalog name while the table still lives in the old system, prove the numbers, then swap the storage underneath. The BI team sees one change instead of two. One trap on the Snowflake side: the OAuth refresh token behind the connection (OAUTH_REFRESH_TOKEN_VALIDITY) defaults to 90 days, and when it expires the connection needs re-authenticating (Snowflake federation). We'd put that date in the migration plan, because a federated catalog that stops answering mid-migration looks like a data problem for the first hour.
What we saw: a Synapse migration in six weeks #
Preetham Reddy, TechFabric's founder, wrote up a manufacturing company's move from Azure Synapse to Databricks that finished in six weeks, where that kind of move normally runs six months or more. His account of the difference is that conversion stopped being treated as the project. The estate was inventoried with Lakebridge Analyzer before any plan was written, with the tool version pinned so a grade could be explained months later. Consumers moved through federation first. Each object counted as migrated only when Lakebridge's Reconciler had produced parity evidence for it, and a wave of objects could not cut over until every object in it was certified and the approvals were collected; the tracking ran in Airlift, our migration tool. Where the deterministic transpiler left FIXME markers, an agent could propose one bounded repair, and people made every decision about evidence, approval, cutover and rollback.
The lesson we'd take from it for any migration, with or without that tooling: decide what "done" means for a single object before converting the first one, write it down per object class, and make cutover read that evidence rather than a checklist on a bridge call. Teams that define parity after conversion argue about it for the rest of the project.
Migrating Hive metastore tables to Unity Catalog #
A different migration hides inside many Databricks estates: tables still registered in a workspace's legacy hive_metastore. Databricks' upgrade guide recommends UCX, another Labs project, for most workspace upgrades. It assesses the workspace, creates the Unity Catalog objects, migrates table metadata and grants, and flags code that still reads hive_metastore paths. For a handful of tables the built-in routes are enough:
-- External tables: register in Unity Catalog without moving data (DRY RUN first)
SYNC SCHEMA main.sales FROM hive_metastore.sales DRY RUN;
SYNC SCHEMA main.sales FROM hive_metastore.sales;
-- Managed tables: copy the data into a Unity Catalog managed table
CREATE TABLE main.sales.orders DEEP CLONE hive_metastore.sales.orders;Hive metastore federation is the third option, governing the old metastore through Unity Catalog while workloads move at their own pace. One trap on the audit side: system.information_schema doesn't include hive_metastore objects, so the obvious inventory query never shows the tables you're trying to find (Security has the grant review that runs into it).
What experienced teams plan for #
Change data capture during the parallel period. The source does not stop while you migrate it. Continuous capture into bronze, rather than repeated full extracts, is what makes parallel running affordable over months instead of weeks, and it turns cutover into stopping writes on the old side rather than a final heroic load. Real-Time and Change Data Capture covers the mechanics.
Shadow reads for consumers. The lowest-drama cutover we'd plan is to point a report at the new system while still serving the old one, compare the two outputs for a period, and only then flip which one the user sees. The comparison is automatic, the flip is boring, and the rollback is a configuration change.
Behavioural differences that are not bugs. Legacy warehouses differ from Spark SQL in ways that produce different results rather than errors, including implicit rounding, collation and case sensitivity in join keys, null ordering, empty string against null, and timestamps across daylight saving boundaries. Each is a small, plausible discrepancy that costs a day to find. A differences register built on the first domain and applied to the rest stops you finding each of them four times.
Query and workload archaeology. Before translating anything, we'd capture what actually runs against the legacy system, with frequency and consumer, from its query history. Scheduled jobs feeding reports nobody has opened in a year are common, and the cheapest migration work is the work you delete.
Cost and governance models do not translate. A workload that was economically invisible on a fixed-capacity appliance becomes a visible line item under consumption pricing, and nightly full rebuilds are the usual offender, so rewrite those as incremental before cutover rather than after the first surprising invoice. Legacy grants accumulated over a decade translate no better; copying them faithfully imports a mess you had an opportunity to fix, so we'd reconstruct entitlements from groups and intent instead.
Migration tooling and the work it does not cover
| Capability | Databricks | AWS | Azure | GCP |
|---|---|---|---|---|
| Replication into the platform | Lakeflow Connect and partner connectors, landing governed | DMS into S3, then Glue to catalog it | Data Factory into ADLS, governed separately | Datastream into BigQuery or GCS |
| SQL and ETL translation | Lakebridge Analyzer, transpilers (one LLM-based, Experimental) and Reconciler | Schema Conversion Tool, aimed at engines | Data Factory mapping and rework | BigQuery translation, strong on dialects |
| Read the legacy system in place | Federation queries it without copying | Federated Query, per engine | Some external querying in Synapse, otherwise copy first | BigQuery Omni and federated sources |
| One governance model during parallel run | Unity Catalog covers federated and native tables alike | Lake Formation covers Glue tables, not the source | Purview catalogues, permissions per system | Dataplex covers BigQuery, source separate |
| Reconciliation between old and new | Both sides queryable from one engine | Land both in S3 and compare | Land both and compare | Land both and compare |
| Semantic reconstruction of business rules | Not automated, and nobody else automates it | Not automated | Not automated | Not automated |
The row worth dwelling on is federation, because it changes the shape of the project rather than its speed. Querying the legacy warehouse from the new engine lets the reconciliation job read both sides from one place, and lets consumers move to the new endpoint before their data has finished moving. The last row is there because migration tooling is routinely oversold, and no tool on any platform reconstructs undocumented business logic. A team told the whole thing is automatic won't have staffed for the part that isn't.
When is a migration finished? #
A migration is not finished when the new system works. It is finished when the old one is switched off, and estates that skip this step pay for both indefinitely while slowly repopulating the old system with new dependencies.
We'd set a decommissioning date per domain at the start, treat every extension as a decision needing a reason and a named owner, and make the final cutover a scheduled event with a rollback plan rather than a gradual fade. Before switch-off we'd take a final archival extract into cheap storage with schema and lineage recorded, because the compliance question about a legacy record arrives eighteen months later and the wrong answer is that the system was decommissioned.
The habits a migration forces are worth keeping. Reconciliation, lineage, a written record of what each domain means, and an owner per dataset are things an estate should have anyway, and a migration is the rare moment the organisation will pay for them.
What's popular