PARAS MADAN
All writing

Latest in AI

Databricks Genie Migrate: How to Validate a T-SQL to Lakeflow Conversion

A passing dry run is a useful first check; test one converted data mart before trusting its numbers.

Databricks announced on November 24 that Genie Migrate can generally convert T-SQL from SQL Server and Azure Synapse dedicated SQL pools into Lakeflow pipelines. The part worth trying is the conversion of a group of related scripts into a serverless pipeline. Use the dry run to spot structural problems first, then compare its actual output with the original on a fixed slice of data.

The release notes still direct a workspace admin to enable Migration Projects Experimental Features for the Spark Declarative Pipelines target. The conversion guide also still labels that target Beta. Check the actual workspace rather than assuming the release headline removed the setting or guarantees rollout to your environment.

Put one data mart into a group

Choose T-SQL as the source and Spark Declarative Pipelines as the target framework. Start with one self-contained group, such as the scripts that prepare orders, join the customer dimension and write a daily sales table. Choose a non-production catalog and schema. The project guide maps each group to one pipeline, so putting each SQL file in a different group would split a unit you need to review and run together.

Run conversion for that group and open the generated pipeline. Review the changes around join keys, nullable fields, dates, and any SQL comments that require manual review. Confirm the destination before anybody runs it. The documented dry run does not write data; a normal pipeline execution can.

Compare the numbers a user would notice

Take a small, fixed input snapshot and run both implementations against matching dates and source records. Capture row count and key uniqueness at each intermediate table. At the final table, compare sums by currency or region rather than just the overall total. Check late-arriving updates, duplicate source keys and records around midnight if any of those matter in the original job.

For example, if both versions write 10,000 daily sales rows but one drops a refund and duplicates an ordinary sale, a row count passes while revenue changes. Key-level differences and the sum of refunds reveal the problem. Record where differences first appear. That makes the fix much smaller than handing an agent the final totals and asking it to make them match.

Move data and production schedules separately

Databricks' migration overview separates assessment and code conversion from moving the source data. Keep those decisions separate in your runbook too. Match actual inputs before comparing pipelines, then check permissions, execution timing, and the downstream jobs that depend on the original output. Keep the old run available until the migrated job meets both the data and operational checks.

The target is useful if related scripts now make a pipeline your team can inspect and run. The dry run earns you a real comparison; it doesn't replace one.

I'm Paras. I work with teams building AI and developer products.

I help turn complicated migrations into clear guides that users can follow without guessing what was tested.

Book a 30-minute call.