← Blog

Agentic SQL migration needs result gates, not a green syntax loop

Databricks’ agentic code converter is generally available for SQL — Genie Code subagents convert T-SQL, Snowflake, Redshift, Oracle, BigQuery, and Teradata — but its own docs still require human review and source-vs-target result comparison before acceptance.

Data EngineeringAgentic AILakehouse

Warehouse migrations fail quietly when “it runs” is mistaken for “it means the same thing.” Syntax repair is not semantic acceptance.

Databricks made the agentic code converter generally available for the SQL target framework, powered by Genie Code. Migration projects organize source files, deploy subagents that convert dialects such as T-SQL, Snowflake, Redshift, Oracle, BigQuery, and Teradata into Databricks SQL concurrently, validate output, and retry failed sections before writing results to a workspace folder. Operators get side-by-side diffs, per-file status (success / needs review / failed), optional Lakebridge Analyzer lineage, shared Genie Code skills for proprietary patterns, and a 300-file batch cap (Teradata BTEQ not supported). Notebooks as a DataFrame-API target remain in Beta. Databricks’ own guidance is explicit after conversion: run the output, test dialect edge cases, and compare original and converted queries against equivalent data — the internal loop catches execution failures; it does not certify business-result equivalence.

What migration and platform leaders should require:

  • Version and review shared migration skills — they are control-plane code, not chat tips
  • Gate promotion on source-vs-target result comparison on representative data, not green validation alone
  • Keep a human acceptance step on the generated diff before production execution

Agentic converters compress mechanical rewrite work. They do not own the final correctness decision — and the product documentation says so.