Databricks、Genie Code で独自コードを ANSI SQL に変換
本文の状態
日本語全文を表示中
詳細モードで約6分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Databricks AI Engineering
Genie Code に新機能として追加されたアジェンティックコンバーターが、T-SQL、Snowflake、Redshift、Oracle、BigQuery、Teradata などの独自方言を ANSI SQL へ変換する。
AI深層分析を開く2026年8月4日 18:34
AI深層分析
キーポイント
アジェンティックコードコンバーターの導入
Genie Code に新機能として追加されたアジェンティックコンバーターが、T-SQL、Snowflake、Redshift、Oracle、BigQuery、Teradata などの独自方言を ANSI SQL へ変換する。
自動化された移行計画の策定
Databricks ワークスペース上で作成できる「Migration Project」機能により、ソースファイルの管理や変換進捗の追跡、そしてコードの複雑度スコアリングに基づく優先順位付けが可能になる。
依存関係の可視化と移行戦略
Genie Code はレガシー資産内のテーブル、ビュー、ストアドプロシージャ間のリンケージをグラフ化し、独立して移行可能なオブジェクトや連携が必要なグループを明確にする。
並行変換とエラー修正の自動化
Genie Code はサブエージェント群を起動してスクリプトを並列に変換し、構文と意味的意図を検証しながらエラーを逐次修正する。
手動編集とカスタムスキルの活用
ネイティブエディタで差分を確認して手動修正するか、Unity Catalog での三要素名指定などのルールをカスタムスキルとして定義し全コードベースに適用できる。
重要な引用
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.
Genie Code analyzes and scores each file's complexity, surfacing an assessment in the right panel.
Genie Code analyzes each script's T-SQL and launches swarms of subagents to convert files in parallel.
編集コメントを表示
編集コメント
Databricks は、データ移行のボトルネックとなる手動変換作業を解消するために、Genie Code の機能を大きく拡張した。特に複雑な依存関係の可視化機能は、大規模なレガシーシステムからの移行リスクを低減する上で極めて実用的である。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
レガシーデータウェアハウスからの移行は、数十年にわたるコードの分析、独自方言の翻訳、大規模なデータの移転、そしてシステム間の差異の調整など、非常に複雑な作業を伴います。Databricks は、同社の AI コーディングエージェント「Genie Code」を活用することで、レガシーデータウェアハウスから Lakehouse へのワークロード移行を劇的に容易にします。
このたび、Genie Code に新機能として「エージェント型コードコンバーター」が追加されました。このコンバーターは、T-SQL、Snowflake、Redshift、Oracle、BigQuery、Teradata の各独自方言を、オープンな ANSI SQL へ変換します。これにより、データウェアハウスの移行は、チームで人員を配置して管理するプロジェクトから、設定して起動し、監視するだけの作業へと変わります。
自動化された移行計画の実践
エージェント型コンバーターの実際の動作を確認するため、T-SQL のストアドプロシージャ群を ANSI SQL へ変換する Proof of Concept(PoC)の例を見ていきましょう。
移行を開始するには、Databricks ワークスペースの新機能である「移行プロジェクト」を作成します。移行プロジェクトは、チームがソースファイルの管理、変換進捗の追跡、移行全体での協働を行うための中央ハブとして機能します。
今回はMigration Project - POCという名前でプロジェクトを作成し、ソース方言をT-SQL、ターゲットをANSI SQLに設定、変換後のファイルを保存する宛先フォルダを選択しました。作成後、すでにワークスペースにアップロード済みのソースSQLファイルをプロジェクトに追加できます。各ファイルには、ファイルタイプ、行数、移行ステータスが表示されます。
Genie Code は各ファイルの複雑さを分析・評価し、右パネルにその結果を提示します。今回の例ではmixed_5cats_sp_string_agg.sqlは低スコアでした。これは、このファイルが ANSI SQL に明確に変換可能なSQL機能のみで構成されているためです。大規模な移行においては、チームはこの複雑度スコアを活用して優先順位をつけ、単純なファイルから順に処理していくことができます。
また、Genie Code はレガシー環境内のすべてのオブジェクト(テーブル、ビュー、ストアドプロシージャ)間の関係性をマッピングするリンケージグラフも生成します。このグラフによると、sps_sp_update_from.sqlとsps_sp_pivot.sqlには共通の依存関係がないため、それぞれ独立して安全に移行可能です。
大規模な移行プロジェクトにおいて、複雑性の把握とデータ系譜(リンケージ)の追跡は、チームが何を、いつ、どの順序で、また何と一緒に移行すべきかを明確に示すために不可欠です。
完全自律型コード変換
ソースコードの分析が完了すれば、次は実際のコード変換に移ります。Runボタンをクリックすると、Genie Code が各スクリプトの T-SQL を解析し、並列処理でファイルを転送する多数のサブエージェントを起動します。各サブエージェントはエラーを逐次的に修正しながら、構文と意味的な意図の両方を検証します。これにより、変換後のコードが元のビジネスロジックを保持し、正常にパースされることを保証しています。
完了すると、変換されたファイルは宛先フォルダに保存され、ステータスに応じて色分けされます。今回の概念実証(PoC)では 8 ファイル中 6 ファイルの変換が成功しました。しかし、mixed_5cats_sp_string_agg.sql と mixed_6cats_sp_string_agg.sql はさらに精査が必要です。右側のパネルを確認すると、スクリプトを修正するために必要なToDo リストが表示されます。Genie Code の解説によると、フラグが付けられた存储プロシージャは、Unity Catalog において 3 部名(catalog.schema.sp_string_agg)で修飾する必要があります。
ファイルをクリックすると、ネイティブの SQL エディターが開き、左右に並べて差分を確認できます。エディター内で手動で修正を行うか、Genie Code で カスタムスキル を作成して変換ルールを定義することで対応可能です。本格的な移行を実行する際、Genie Code はこのルールを適用し、Unity Catalog におけるストアドプロシージャに 3 部構成の名前を自動的に付与します。これはコードベース全体に対して一貫して実行されます。
カスタムスキルは、承認された ETL パターンへの準拠や社内命名規則の遵守など、より広範なカスタマイズにも役立ちます。
リフト&シフトを検討するチームにとって、Databricks はエンタープライズ向けの SQL 機能をすべて備えています。レガシーデータウェアハウスで一般的に利用されている 複数ステートメントトランザクション、テンポラリーテーブル、そして ストアドプロシージャ といった機能も Databricks で利用可能です。そのため、ロジックを新しいプラットフォームに合わせて再設計する必要はありません。
エージェント型コンバーターで今日から始めよう
エージェント型コードコンバーターは、データウェアハウス移行ツールの次世代です。これは、大規模展開での Lakebridge の成功を踏まえて構築されています。
2025 年の Data and AI サミットで 発表された 以来、Lakebridge の 変換ツール は、1,000 社以上の顧客が Databricks ライクハウスへの移行を完了するのを支援してきました。
「Lakebridge によって、Databricks への移行が予測可能で効率的になりました。レガシーのストアドプロシージャを Spark の宣言型パイプラインに変換し、手作業を大幅に削減。統合されたオープンな Lakehouse へ迅速に進むことができました。」—Shane Irons氏、情報管理担当シニアディレクター
次のステップとして、エージェント型コンバーターは一般的なレガシー ETL ソースと新しいターゲット方言への対応を拡大します。また、データ移行と整合性確認を移行プロジェクトの体験に統合する計画です。これには、データを移行するためのネイティブな Lakeflow Connect 連携や、切り替え前に移行されたデータがソースと一致していることを検証する自動化ツールが含まれます。
移行の準備はできましたか?Databricks のアカウントチームに連絡して、レガシーシステムの現状を評価し、エージェント型コードコンバーターを試してみてください。こちらからアクセスできます。
原文を表示
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.
Automated migration planning
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.
Fully agentic code conversion
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.
Get started with the Agentic Converter today
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.
AI算出
主要ニュースainew評価高い
AI コーディングエージェントによるレガシーコード変換という明確な技術的実装と、T-SQL から ANSI SQL への変換機能という具体的な新機能が報じられているため、新規性と AI 関連性は高い。ただし、日本企業固有の事例や日本語での利用条件に関する情報は含まれていないため、日本関連性は低めとなる。
6つの評価軸を見る
- AI関連度
- 75
- 情報源の信頼性
- 100
- 新規性
- 75
- 調べる価値
- 75
- 重複の少なさ
- 100
- 日本での有用性
- 25
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み