cd /news/artificial-intelligence/convert-proprietary-code-to-open-ans… · home topics artificial-intelligence article
[ARTICLE · art-79536] src=databricks.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Convert proprietary code to open ANSI SQL with the agentic code converter, now in Beta

Databricks announced the beta release of the agentic code converter in Genie Code, which automates the translation of proprietary SQL dialects from T-SQL, Snowflake, Redshift, Oracle, BigQuery, and Teradata to open ANSI SQL. The tool uses AI agents to analyze, convert, and validate code, providing complexity scoring and lineage mapping to streamline data warehouse migrations to the Databricks Lakehouse.

read4 min views1 publishedJul 30, 2026
Convert proprietary code to open ANSI SQL with the agentic code converter, now in Beta
Image: Databricks Blog

Genie Code automates code conversion from T-SQL, Snowflake, Redshift, Oracle, BigQuery, and Teradata to open ANSI SQL

Migrating from a legacy data warehouse is a complex undertaking, requiring teams to analyze decades-old code, translate proprietary dialects, migrate massive datasets, and reconcile differences between systems. Databricks is making it dramatically easier to migrate workloads from legacy data warehouses to the Lakehouse with Genie Code, Databricks' AI coding agent.

We are excited to announce the new agentic converter in Genie Code. The agentic code converter translates proprietary dialects to open ANSI SQL, starting with T-SQL, Snowflake, Redshift, Oracle, BigQuery, and Teradata. It transforms a data warehouse migration from a project your team staffs and manages to one you configure, launch, and monitor.

To see how the agentic converter works in practice, we'll walk through a proof of concept converting a set of T-SQL stored procedures to ANSI SQL.

To start the migration, we create a migration project, a new feature in a Databricks workspace. Migration projects give teams a central hub to manage source files, track conversion progress, and collaborate throughout the migration. We name our project Migration Project - POC, set the source dialect to T-SQL, the target to ANSI SQL, and choose a destination folder for the converted files. Once created, we can populate the project with source SQL files, which were previously uploaded to the workspace. Each file appears in the project with its file type, lines of code, and migration status:

Genie Code analyzes and scores each file's complexity, surfacing an assessment in the right panel. In our example, mixed_5cats_sp_string_agg.sql scores low complexity because it contains only SQL features that map cleanly to ANSI SQL. For a full scale migration, teams can use the complexity score to prioritize and tackle simpler files first.

Genie Code also generates lineage, mapping every relationship between objects in the legacy estate — tables, views, and stored procedures. The lineage graph shows that sps_sp_update_from.sql and sps_sp_pivot.sql have no shared dependencies, meaning they can be safely migrated independently.

In a full-scale migration, complexity and lineage give teams a clear picture of what to migrate, in what order, and what needs to move together.

After analyzing the source code, we can start to convert code. When we click Run, Genie Code analyzes each script's T-SQL and launches swarms of subagents to convert files in parallel. Each subagent iteratively fixes errors, validating both syntax and semantic intent to ensure the converted code retains the original business logic and successfully parses.

Once complete, the converted files are written to the destination folder and color-coded by status. In our proof of concept, 6 of 8 files were successfully converted. However, mixed_5cats_sp_string_agg.sql and **mixed_6cats_sp_string_agg.sql **need further review. Viewing the right panel, we can see the list of to-do’s required to fix the script. Genie Code explains that the flagged stored procedures must be qualified by a three part name in Unity Catalog (catalog.schema.sp_string_agg).

By clicking on the file, we can open the native SQL editor to explore the side-by-side difference. We can make the fix manually in the editor or codify a conversion rule by creating a custom skill in Genie Code. When we're ready to run the full migration, Genie Code will apply the rule, in this case giving stored procedures a three part name in Unity Catalog, automatically across the entire codebase. Custom skills are also useful for broader customization, like conforming to an approved ETL pattern or following internal naming conventions.

For teams looking to lift-and-shift, Databricks ships the full suite of enterprise SQL features. Multi-Statement Transactions, Temp Tables, and Stored Procedures — features commonly used in legacy data warehouses – are all available in Databricks, so there's no need to re-engineer your logic to fit a new platform. The agentic code converter is the next generation of data warehouse migration tooling, building on Lakebridge’s success at scale. Since its launch at Data and AI Summit 2025, Lakebridge’s conversion tooling has helped over a thousand customers adopt the Databricks lakehouse:

“Lakebridge made our migration to Databricks more predictable and efficient. It handled the conversion of our legacy stored procedures into Spark Declarative Pipelines, which cut down a lot of the manual work and helped us move faster toward a consolidated open Lakehouse.”—Shane Irons, Sr. Director of Information Management

As a next step, we are expanding the agentic converter to support common legacy ETL sources and new target dialects. We also plan to bring data migration and reconciliation into the migration project experience, with a native Lakeflow Connect integration to migrate data and automated tools to validate that migrated data matches the source before cutover.

Ready to migrate? Connect with your Databricks account team to assess your legacy estate and try the agentic code converter here.

Subscribe to our blog and get the latest posts delivered to your inbox.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @databricks 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/convert-proprietary-…] indexed:0 read:4min 2026-07-30 ·