Data Warehouse Migrations
Session Overview & Presenters
Topic: Specialist Sessions — Data Warehouse Migrations (SSAs)
Presenters:
- Matt Slack, Sr. Specialist Solutions Architect
- Mike Dobing, Sr. Specialist Solutions Architect
What are Specialist Sessions?
- L300/400 one-to-many sessions with users on a variety of important topics within the ecosystem.
- Topics are chosen using data from recent specialist engagements to proactively provide guidance to users.
- The sessions represent a point-in-time snapshot of the topic, as roadmap and preview are discussed at the time of presentation. This program will update and re-run sessions over time.
- These are expected to run once per month, though scheduling may change according to demand.
How this differs from other enablement content:
- Showcases deeper technical best practices from projects running successfully at scale.
- Provides an opportunity for teams to ask Specialist Architects technical questions about real projects of theirs.
- Provides an opportunity for feedback at the end of the session to help drive future sessions and feature development.
Target Audience (You Are):
- Someone who actively uses the platform to build platforms.
- Someone with a working knowledge of the current feature set.
- Someone who has an interest in migrating workloads from other technologies, such as legacy data warehouses or other Spark implementations.
Key Takeaways (You Will Get):
- A practitioner's understanding of migrating the main legacy data warehouses.
- An overview of the possible methodologies that can be used.
- Introduction to some technologies that can accelerate or simplify migrations.
- Field-developed, battle-hardened tips on what to look out for.
Agenda:
- Why Migrate - What's the Opportunity?
- SQL: Recap
- Migration Approach: 3 Pillar Approach, Migration Methodologies, Modelling, Access Patterns, Tooling
- How We Can Help
Migration Scope: Beyond Code Conversion
Migrations are not just code conversion.
Table stakes (what most people think is the migration):
- SQL/Code translation & Data Validation
Other critical considerations:
- Data movement / Ingestion ("how to get data from A to B")
- Governance ("how do I manage my data in the new platform?")
- Data Modeling ("how do I organize data differently?")
- Tool Integration ("Can I use my same tools?")
- FinOps ("I have to track costs and data access")
- Orchestration
- Observability
- Backfilling
- Complex Batching
- Performance
Why Migrate Your Enterprise Data Warehouse (EDW)?
Approaches for moving to SQL Warehouses: Legacy data warehouses are expensive anchors for every enterprise; it's time to move. Migrations can be expensive, especially on-prem migrations.
Legacy & Source Systems:
Traditional on-premises data warehouses: Teradata, Oracle, Microsoft SQL Server, Exadata, Netezza, SAP HANA, IBM DB2, Vertica
Cloud data warehouses: Snowflake, Azure Synapse, Amazon Redshift, Google BigQuery, Oracle, Microsoft SQL Server
Hadoop: Hive, Cloudera, Impala
Legacy ETL: Talend, Informatica, DataStage
Legacy Challenges:
- Expensive
- Forced renewals
- Can only scale by buying a bigger box
Modernization Opportunities:
- To enhance our customer's business by adding new business cases
- To add new and modern data sources
- Moving ETL to a more scalable solution
- To modernize the data architecture
- To activate predictive and prescriptive analytics with ML and GenAI
- To clean up and modernize the data landscape
Architectural Evolution: Traditional vs. Modern Lakehouse
Data Flows:
Sources: ERP, SCM, External files, CRM
Ingestion/Access: Lakehouse Federation, Lakeflow connect
Traditional flow: Staging -> ODS -> Data Warehouse -> Data Marts (DWH is the source of truth; data modeling is key; main use cases: descriptive analytics)
Modern flow: Bronze -> Silver -> Gold -> AI/BI, Decision, Genie
Unified Architecture Flow:
End-to-end flow: Data Sources -> Ingest -> Transform -> Query -> Visualize -> Serve -> External Apps
Foundational layers across the architecture: Performance, Governance, Delta UniForm, Unity Catalog, Delta Sharing, Marketplace
Intelligent Data Warehousing & Data Intelligence Platform
Resolving Incompatible Architectures:
Data Warehouse for BI ("What happened?"): Clean Data -> Reports -> Ad Hoc Queries -> Data Exploration
Data Lake for AI ("What will happen?"): Predictive Modeling -> Prescriptive Analytics -> Automated Decision Making
Data + AI maturity curve: Bridging both paradigms in a single platform.
Simplified and Unified Architecture Layers (from bottom to top):
- All Raw Data (Logs, Texts, Audio, Video, Images)
- Open Data Lake
- Unified data storage for reliability and sharing
- Unified security, governance, and cataloging
- Top-level workloads: Data Science & AI, ETL & Real-time Orchestration & Analytics, Data Warehousing
Industry Adoption:
- 74% of global enterprises have adopted lakehouse!
- Transactional data lake architecture pattern for unified analytics, AI/ML, and other collaborative workloads.
- Industry adoption and validation across engineering blogs and major cloud providers (Microsoft Fabric, Amazon Redshift, Snowflake, Google BigLake).
Data Intelligence Platform (Data lakehouse + Generative AI):
- An open, unified foundation for all your data
- Easily scale and use data and AI
- Democratize data + AI across your entire organization
Data Intelligence Platform Components:
Workloads: Data science & AI (Mosaic AI), ETL & Real-time analytics (Delta Live Tables), Orchestration (Workflows), Data Warehousing (SQL)
Intelligence & Governance — Semantics: Use generative AI to understand the semantics of your data (IQ)
Intelligence & Governance — Governance: Unified governance (Unity Catalog)
Intelligence & Governance — Natural Language: Securely get insights in natural language
Intelligence & Governance — Optimization: Data layout is automatically optimized based on usage patterns
Storage: Delta Lake UniForm, Open Data Lake (All raw data: Logs, Texts, Audio, Video, Images)
Unity Catalog:
- Unified governance for data and AI
- Unified visibility into data and AI
- Single permission model for data and AI
- AI-powered monitoring and observability
- Open data sharing
Core capabilities: Discovery, Access Controls, Lineage, Monitoring, Auditing, Data Sharing
Governed assets: Tables, Files, Models, Notebooks, Dashboards
SQL & Product Highlights
Product Highlights 2025 — AI Powered Optimizations:
- Higher concurrency
- Improved small query performance
- Row-level concurrency
- Liquid Clustering: Auto-select columns
Product Highlights 2025 — Intelligent Experiences:
- AI Functions & LLMs via SQL
- Publish to PowerBI and Tableau
- Looker Studio Connector
- SQL Editor + Assistant Enhancements
Product Highlights 2025 — Unified Architecture:
- SQL Scripting, Stored Procedures, Spatial SQL
- Lakehouse Federation more db sources
- Improved Monitoring UI & System Tables
- Budgets & Fine grain Cost Monitoring
- Compliance: HIPAA, PCI, FedRamp for Serverless Warehouses on AWS, HIPAA on GCP
SQL Functions for Every AI Use Case (Public Preview, except ai_forecast() in Gated Public Preview):
- Classification
- Forecasting (new)
- Grammar Correction
- Masking
- Named Entity Recognition
- Sentiment Analysis
- Similarity
- Summarization
- Text Generation
- Translation
Efficient throughput for batch model inference: 4x improvement on throughput using ai_query() over the last 3 months (measured in tokens per second comparing Baseline vs. Optimized).
Connect to custom or external models using ai_query():
select ai_query(
endpoint => 'model-endpoint',
request => concat('Summarize the following document.\n', doc)
) as summary
from table
SQL Scripting & Control Flow:
- Write efficient, readable code in pure SQL
- Handle logical control flow using IF/ELSE, CASE, LOOP, WHILE, REPEAT statements
- Support for Exception Handling, and easy debugging
Example script:
DECLARE count INT;
SET count = 1;
DECLARE Sum INT;
SET Sum = 0;
BEGIN
WHILE count <= 10 DO
INSERT INTO tab_script VALUES (count);
SET Sum = Sum + count;
SET count = count + 1;
END WHILE;
SELECT Sum AS sum_of_numbers;
END;
Stored Procedures:
- Add control flow logic (IF/ELSE, CASE) and loops (FOR, LOOP, WHILE, REPEAT, ITERATE, LEAVE)
- Create Procedures to apply fine-grained permissions, easily reuse code, return multiple results in SQL or Python
- Full support for local variables, exception handling, Temp Tables, and Multi-Statement Transactions
Example procedure:
CREATE OR REPLACE PROCEDURE area_of_rectangle
(IN x INT, IN y INT, OUT area INT, INOUT acc INT)
LANGUAGE SQL
AS
BEGIN
SET area = x * y;
SET acc = acc + area;
END;
CALL area_of_rectangle(5, 10, ?, 10)
-- Result: area = 50, acc = 60
Seamless Catalog Integration & Data Model Sync — Power BI Integration:
- Publish UC datasets from the UI, without PBI Desktop, to Power BI Online.
- Sync entire schemas including table relationships (PK/FK) to save time.
- Connect to Azure AD to select a Power BI workspace and publish data via Partner Connect (selecting Compute, Power BI workspaces, and tables to publish).
Seamless Catalog Integration & Data Model Sync — Tableau Integration:
- Easily explore Unity Catalog datasets in Tableau Online with a single click from Data Explorer.
- Use Partner Connect to connect Tableau Cloud to a cluster or SQL warehouse and open materialized views or tables directly in Tableau Cloud.
AI/BI Dashboards:
- Share dashboards broadly in your organization without needing to grant viewers workspace access
- Generate charts using natural language with Assistant for Dashboards
- Embed dashboards in web pages and apps (coming soon)
- Generally Available (Also available in AWS GovCloud; Private Preview for GCP coming soon)
Migration Approaches & Methodologies
Technical Migration Approach — 3 Key Pillars:
Pillar 1 — Architecture/Infrastructure: Establish deployment Architecture; Implement Security and Governance framework
Pillar 2 — Data Migration: Map Data Structures and Layout; Complete One time load; Implement incremental load approach
Pillar 3 — ETL and Pipelines: Migrate Data transformation and pipeline code, orchestration and jobs; Speed up your migration using Automation tools; Validate: Compare your results with On Prem data and expected results
Downstream Consumption Outcomes:
BI and Analytics: Re-point reports and analytics for Business Analysts and Business Outcomes, OLAP cube repointing, Connect to reporting and analytics applications
Data Science/ML: Establish connectivity to ML Tools, Onboard Data Science teams
Two Possible Migration Paths:
Front to back: Once the serving layer is exposed, we are able to modernize the staging and integration layer accordingly. Prevents the legacy front from expanding while we modernize. Most of the complexity is at the back so this can happen after users are moved to the new gold layer, meaning legacy costs are reduced. Best suited for modernizing to a data product approach.
Back to front: Natural way to migrate. Optimization and migration (data, ETL etc.) are identified and executed one by one. Preferred for a modernization approach.
End-User Perspective & Layer Mapping:
Even if data warehousing is 70% data processing and 30% consumption of curated data, the usage of data is where we need to win to get acceptance as a data warehouse solution for the enterprise.
DWH: Stage -> Integration -> Serving -> BI Tool
Lakehouse: Bronze -> Silver -> Gold -> BI Tool
Front-to-Back Migration Workflow
Bringing value of the new platform earlier to the business by avoiding long phases with no perceived value.
Phase-by-Phase Execution:
Initial Setup: Bring up the new platform alongside the existing enterprise data warehouse. Existing DWH flow remains active: Stage (DW sources) -> Integration (DW) -> Serving (mart) -> BI Tool. Lakehouse layers (Bronze, Silver, Gold) are provisioned alongside.
First Phase (Early Business Access): Give business access to existing DWH data and a way to get access to new data using the new platform early. Operational data sources flow through Stage (DW sources), Integration (DW), and Serving (mart) to the End Consumer. Concurrently, mart sources from the legacy integration layer are routed into Bronze and Gold (mart) on the new platform (mart sources -> Gold mart -> BI Tool). Because it is a source on the new platform curated elsewhere, if changes are introduced in the source, you can decide to propagate or keep according to previous delivery. Once the mart is over in the new technology, business can decide to extend this mart with additional sources that would be curated in the new platform.
Second Phase (Source Ingestion Evolution): Evolve by bringing sources to bronze in the new platform that will be used to populate the new integration layer, running side-by-side with the sources from integration in the old solution. Bring in true operational sources (dw sources in Bronze) from the existing data warehouse. This entails copying the source table structures and history, as well as establishing delivery contracts with existing delivering systems.
Third Phase (Integration Layer Build-out & Refinement): Build out the integration layer and adjust the model for speed and efficiency where it makes sense (probably executed from the modeling tool suite). Build the new integration layer (Silver DW) based on the model of the previous integration layer, adjusted for speed, efficiency, and clarity, sourcing it from newly established source data deliveries to the lakehouse. Build the logic to do the initial load from the existing integration layer to the new integration layer to bring over historical data from the old warehouse into the new warehouse (Initial Load into Bronze alongside dw sources to populate DW in Silver).
Fourth Phase (ETL Migration & Interface Stabilization): Migrate the ETL and adjust for the adjustments in data model, ensuring interfaces are stable between layers. Execute the initial load and start running the incremental loads regularly. The platform ETL to silver is in full operation at this point. Build the silver to gold ETL logic (DW in Silver -> mart in Gold).
Fifth Phase (Phasing Out Temporary Deliveries): Phase out integration layer sources, replacing them with true sources and effectively taking over the integration responsibility for the pipelines. Once you have proven that you can deliver the same data structure and the same content from the new integration layer within the stipulated time, phase out the temporary deliveries established to migrate the data mart (mart sources and temporary mart are removed, leaving DW sources -> DW -> mart -> BI Tool).
Sixth Phase (User Acceptance Tests): Get a formal acceptance of the new platform in terms of the data it provides. Both the legacy DWH (DW sources -> DW -> mart) and the new Lakehouse (DW sources -> DW -> mart) feed the BI Tool for validation.
Final Phase (Production / EOL Existing DWH): Decommission old platform and start running the new platform in production with production SLAs. Legacy DWH (Stage, Integration, Serving) is retired, leaving the Lakehouse (Bronze DW sources -> Silver DW -> Gold mart) directly serving BI Tools.
Front-to-Back Key Benefits:
Accelerated Business Value: Start by migrating the reporting and access layers, leveraging curated data from your existing warehouse to deliver quick wins and early business impact.
Early Adoption & Feedback: Provides users with a hands-on preview of the new platform, enabling them to explore long-requested enhancements and address backlog items early.
Avoid the "Lift-and-Shift Trap": Traditional migrations can take 12–24 months, often just replicating the old system on a new platform without delivering new value or enabling change.
Continuous Validation: Each migration step is matched against the current solution to ensure it meets (and ideally exceeds) existing requirements, reducing surprises and ensuring quality.
Minimized Risk Through Iteration: While slower than a big-bang approach, the phased transition is fully controlled and significantly reduces the operational and delivery risks often seen in large-scale migrations.
Back-to-Front Migration Workflow
Delivering a quick and natural migration pathway.
Phase-by-Phase Execution:
First Phase: Operational data sources are ingested into the bronze layer (DW sources). Legacy DWH remains active (Stage -> Integration -> Serving -> End consumer).
Second Phase: Loading the existing integration layer (DWH) into the bronze layer (Initial Load) to get the history coming from the old data warehouse.
Third Phase: According to the business rules, the data warehouse (DWH in Silver) is implemented from the data sources ingested previously (DW sources), and the initial load of the source integration layer. ETL can be converted manually or using code converters for efficiency. Creating consumption interfaces is also recommended (data reconciliation, etc.).
Fourth Phase: The gold layer (Data marts) is implemented by consuming data from the silver layer (DWH) to build data marts. Data is consumed from interfaces previously created. ETL conversion can be done manually or using code converters for efficiency.
Fifth Phase: BI tools validation and/or migrations (dashboards). Validate the new platform (user acceptance, SLA, FinOps, etc.) with both platforms feeding the End consumer.
Final Phase: Decommission old platform and start running the new platform in production with production SLAs.
Lift-n-Shift / Back-to-Front Key Benefits:
Full Platform Migration from Day One: Moves the entire data warehouse workload including ETL, models, and reporting to the new platform early, enabling teams to operate entirely within the new ecosystem.
Simplified Architecture Over Time: Reduces the overhead of maintaining dual platforms, since the old system can be decommissioned sooner once everything is migrated.
Consistency with the Legacy Environment: Preserves existing logic, structure, and workflows, minimizing the need for upfront redesign and retraining for users familiar with the legacy system.
Easier Regulatory & Compliance Alignment: Ensures all data processing and storage happens on a single platform, streamlining auditability and simplifying governance.
Clear Cutover Milestone: A single, well-defined go-live point makes stakeholder communication, change management, and success measurement more straightforward.
Decoupling with Stable View Layers:
Architecture flow: Process -> Access Schema (Access Views acting as a stable interface) -> Database Schema (underlying Tables representing the implementation, which is subject to change).
Benefits of stable interfaces: Data reconciliation, support of modernization, Data Products implementation, and many more.
Example SQL view definition:
CREATE VIEW experienced_employee (
id int,
name string
)
AS SELECT id, name
FROM all_employee
WHERE working_years > 5;
Data Modeling in the Lakehouse
Kimball Approach:
- Denormalize dimension and fact tables
- Use conformed dimensions
- Create and use surrogate keys for joins
- Use slowly changing dimensions as necessary
- Aggregate tables for scalability using DLT (Materialized Views) or in BI semantic layer tools
Star Schema Structure:
Central Fact Table: Product ID, Time ID, Promotion ID, Customer ID, Revenue, Units Sold
Product Dim: Product ID, Product Name, Unit Price, Product Line
Time Dim: Time ID, Order Date, Month, Quarter, Year
Customer Dim: Customer ID, Name, City, Zip
Promotion Dim: Promotion ID, Promo Name, Ad Type, Coupon Type, Price Reduction Type
Enterprise Bus Matrix (Shared Dimensions: Date, Customer, Product, Vendor, Promotion, Reseller, Sales Territory, Employee, Account, Organization):
Internet Sales: Date, Customer, Product, Vendor, Promotion, Sales Territory
Reseller Sales: Date, Product, Promotion, Reseller, Sales Territory, Employee
General Ledger: Date, Account, Organization
Sales Plan: Date, Product, Sales Territory
Inventory: Date, Product, Vendor, Account
Customer Surveys: Date, Customer
Customer Service Calls: Date, Customer, Product, Employee
Dimensional Modeling Across Medallion Layers (ETL/ELT):
Landing (bronze): Raw data in its original format (temporarily).
Ingestion (bronze): Raw data converted to Delta (from Avro, CSV, parquet, XML, JSON format in Landing); verified data contract (schema typically derived from the source, timeframe, etc.); sometimes called Staging.
Integration — Physical data model (silver): Detailed information covering multiple business domains (including glossary and taxonomy); integrates all data sources via Business Information Model, Logical Data Model (3NF - Third normal form in data modelling), and Physical Data Model; does not necessarily use a dimensional model, but feeds dimensional models.
Data Mart / Presentation (gold): Subset of the Integrated layer, sometimes filtered or aggregated data; focus on dimensional modeling with a star schema (e.g., Order Fact connected to Customer Dim, Product Dim, and Time Dim) queried via SQL; typically oriented to a specific line of business or team.
The Enhanced Medallion Architecture (Batch and Streaming into Cloud Storage):
Bronze layer — Staging / Landing: Raw data in its original format (temporary).
Bronze layer — Ingestion: Raw data verified and converted to Delta.
Silver and Gold layers for Data Lake (modern use cases): Curation (silver) provides cleansed, homogenized data with fundamental business logic applied (augmented); Final (gold) provides business/project-specific ready datasets.
Silver and Gold layers for DWH (BI use cases - strictly modeled and verified data): Integration (silver) provides Enterprise DWH (could be multiple) using a Business information model; Presentation (gold) provides business-ready DWH information (data marts).
Value of combining both worlds in the Lakehouse: Access corporate KPIs for modern use cases; speed up delivery for DWH use cases; the "Semantic Layer" could be placed into BI tools like PowerBI, however, when working with the Lakehouse, it is assumed that the semantic layer is part of the presentation layer (e.g., no size restrictions).
Dimensional Modeling Basic Steps to Success:
Foundation: Kimball/Inmon – use dimensional modeling industry principles.
Use Delta Tables: Use Delta for your fact and dimension tables.
Use DB SQL Serverless: More efficient performance, with photon, predictive I/O support and intelligent workload management out of the box.
Use Predictive Optimization: Proactively identify and optimise tables based on query patterns.
Liquid Clustering: Use Liquid Clustering to optimize query performance.
Analyze Tables: Gather statistics for Adaptive Query Execution Optimizer.
Use Managed Tables: More performant, fully managed.
Migration Tooling & Acceleration
Automate to accelerate across migration phases (Discovery, Assessment, Strategy, Prod. Pilot, Execution):
Profilers — Overview: Use profiler to get insights on legacy workloads, estimated \$DBUs, and T-shirt size migration estimates.
Profilers — Automated Discovery Metrics: Data volumes split by database, server, environment (e.g., tracking TotalDiskSpaceGB across databases like ACSV00, ACSV01, ACSV03); workload classification (e.g., ETL, BI/Query, DDL, Ingestion, Other); utilization patterns throughout the day/week (tracking hourly CPU utilization percentages and query counts over time); estimated \$DBU; orchestration of long-running jobs and queries; number of users and typical query patterns; compatibility with DBSQL; data growth over time.
Code Analyzers: Use analyzers for detailed assessment, code complexity assessment, and estimating migration project costs.
Code Converters: Use code converters to transpile legacy code to platform-compatible code (PySpark or DBSQL); can be used by implementation partners, PS, or customer teams; build a quick PoC / MVP or Pilot; help jumpstart migration projects and drive ROI faster.
Data Migration: Use data migration tools for loading data from legacy systems, initial seeding of data pipelines, synchronisation of parallel runs, and reconciliation.
Lakebridge & BladeBridge
Simplifying the transition to SQL from Teradata, Snowflake, Redshift, Oracle, Netezza, and others.
Announcement (February 4, 2025; Authors: Arsalan Tavakoli-Shiraji, Kanad Sharma, Jordan Thomas, Guenia Izquierdo Delgado): Welcoming BladeBridge to simplify and accelerate data warehouse migrations to SQL from more than 20 legacy source systems (including Teradata, Snowflake, Amazon Redshift, and Microsoft SQL Server); combines a configuration-driven approach with advanced AI-powered conversion to significantly reduce cost and lower risk of data replatforming; freely available to partners and customers along with other migration tools.
Addressing the "Heart Transplant" Challenge (Source: Gartner):
Impacted system interconnects: Dev environment, Change control, SQL query, SQL semantics, Schemas, Data formats, Monitoring and controls, Documentation and procedures, Performance/SLAs, OS interaction, Results, Error codes, Data loading, Extract/transform/load (ETL), Data export, Backup and recovery, Admin/reorganization, HA/DR, Interfaces/other systems, and Platform configuration/characteristics.
Current-state pain points: Unreliable Effort & Cost Estimates, Incomplete SQL & ETL Conversion, Low Trust in Final Results.
Desired state via Automation, Tooling, and Frameworks: Predictable Effort & Cost, Migrate a broad set of sources & ETL, Boost business confidence.
Lakebridge Capabilities & Impact (80% Automation, 2x Project Speed):
Analyzer: End-to-end assessment of legacy code
Conversion: Comprehensive conversion for SQL and ETL code from over 25 sources
Validation: Accurate data reconciliation and validation
Supported Legacy Warehouses & ETL Tools (20+): Teradata, Oracle, Netezza, Microsoft SQL Server, DataStage, Greenplum, Snowflake, Amazon Redshift, Azure Synapse Analytics, Cloudera Impala, Hive, IBM DB2, Informatica, Pentaho, Microsoft SQL Server Integration Services (SSIS), SAP HANA, Vertica, Talend.
Ecosystem: 40+ Partners & SIs with expertise; AI-powered conversion.
Lakebridge Foundations (CLI Based, Runs locally, OSS - Labs, supports Windows, Mac, Linux):
Profiler: System Utilization, Workload Insights, TCO (Supported sources: Synapse)
Analyzer: Code Insights, Complexity Analysis, Migration Cost (Supported sources: Teradata, Oracle, Netezza, MS SQL Server, DataStage, Snowflake, Informatica, Synapse)
Converter: SQL / Scripting, Schema, Workflows (Supported sources: Teradata, Oracle, Netezza, MS SQL Server, DataStage, Snowflake, Informatica, Synapse, DBT Repointing)
Validator: Reconciliation (Row, Column) (Supported sources: Oracle, MS SQL Server, Snowflake, Synapse)
BladeBridge Analyzer & Estimation Details:
BladeBridge Capabilities: Analyzer identifies and characterizes data platform complexity; Converter uses a configuration-driven approach enhanced by GenAI for code modernization.
Sample Analyzer Execution Metadata: Analyzer Version 5.5.91 Build 20250404, run duration 7m 58s, CLI options (-E sql, -F 1E+12, -d /scripts, -e 1, -r /out.xlsx, -t SQL).
Sample Analyzer Code Base Details Inventory: Total SQL Scripts: 1526 (Total FILE Scripts: 1526); Total DDLs: 848 (Total Tables in scripts: 848); Total Views: 155 (Materialized Views: 0); Total Indices: 110; Total Procedures: 231, Functions: 46, Triggers: 5; Total Loops & Cursors: 12; Total Lines of Code: 312,634; Total Duplicated SQL Items: 3.
Sample Analyzer Job Complexity Categorization: SQL / ETL scripts: Low (1209), Medium (30), Complex (7), Very Complex (1); Procedures or Functions: Low (84), Medium (139), Complex (44), Very Complex (10).
Sample Analyzer Generated Worksheet Index Tabs: Summary, SQL Programs, SQL Script Categories, UNKNOWN SQL Category, Loops & Cursors, SQL Special Patterns, Functions, Functions by Script, Scripts Functions Xref, Referenced Objects, Program-Object Xref, RAW PROGRAM OBJECT XREF, RAW PROGRAM PARAM LIST, Duplicated SQL Items, SQL Data Types.
Sample Project Estimation Breakdown (Software Pricing Calculator): Tracks object counts by Job Complexity (Low, Medium, Complex, Very Complex) across categories such as SDLF, OF, Power BI, and ISS (totaling 11,014 objects), and calculates effort across three phases using hours-per-object multipliers and a 50% automation curve: Compile Complete (Minimum) at 41,807 SI hours (plus support hours included at 1 hour per 10k), Data Test Consulting at 23,350 SI hours, and Production Deployment at 11,675 SI hours.
Lakebridge Key Benefits:
Accurate estimates: Lakebridge Analyzer has been used to scope and plan thousands of data warehouse and Hadoop migrations.
Low risk: Proven on-time and on-budget success by 40+ partners and SIs with migrations from all major legacy warehouses.
Accelerated delivery: Configuration-driven, AI-powered approach to code conversion simplifies a migration.
Lakebridge Converter Iterative Workflow:
Step 1 — Condition Configuration Files: Prep the configs so they match the client's requirements (roughly 2 weeks before mass conversion).
Step 2 — Convert Jobs: Execute the converter with the updated configuration files.
Step 3 — Compile Check: Compile Pass moves forward to Data Testing; Compile Fail (job doesn't compile) loops back to Adapt Configs (change configuration files to adapt to the failure) or routes to Low Pattern (Manual) handling (jobs with low pattern counts, typically 5%–20% of code).
Step 4 — Data Testing: Validate that the ETL target of the legacy and target platform match in parallel testing of the databases; Data Test Pass completes the validation flow, while Data Test Fail (source and target data do not match in tests) loops back to Adapt Configs.
Other Code Conversion Tools:
remorph: Project offering both a transpiler and data reconciliation across Profiler, Analyzer, Code conversion, Data migration, and Reconciliation phases.
Legion: Labs project offering code conversion using LLMs.
SQLGlot: Open source project to convert between many different SQL dialects.
GenAI Code Conversion
SQL Assistant for Interactive T-SQL to SQL Conversion:
Prompt rules: Prompts the assistant as an expert in Microsoft T-SQL and target SQL to convert a script by removing .dbo prefixes and GO batch separators, retaining comments and removing square brackets [ and ], explicitly listing columns in INSERT INTO statements for tables with identity columns, casting VARCHAR without length as STRING, replacing ISNUMERIC with try_to_number(field, 0) null checks, using MAX in sub-selects to return single rows, converting TIME data types to TIMESTAMP, and ending statements with semicolons.
Interactive diff view: Displays side-by-side changes (e.g., across DimTime, StatusType, TaxRate, TradeType, and DimBroker insert statements) with options to Accept or Reject changes.
AI_QUERY Built-in Function:
- Easily query and apply AI models across custom, foundation, and external endpoints through Model Serving.
- Efficient batch inference for large datasets, supporting all data and model types.
- Seamless integration with SQL, Notebooks, and Workflows for AI-driven analytics.
- Scalable and cost-effective for embedding generation, document analysis, and model evaluation (e.g., querying
llama33_70b_pt_epwith a structuredjson_schemaresponseFormatto extract location, service score, product score, product name, atmosphere score, and urgency from unstructured reviews).
Automated Stored Procedure Conversion with Prompts & ai_query:
Prompt Engineering Strategy (T-SQL to PySpark DataFrames & Spark SQL): Instructs the model to replace CREATE PROCEDURE and RETURN with PySpark functions, DECLARE variables with Python assignments, SELECT INTO #TempTable with df.createOrReplaceTempView, MERGE/INSERT/UPDATE/DELETE with DataFrame operations (join, withColumn, filter, union), and CURSORS/WHILE loops with DataFrame transformations; applies optimizations (broadcast, caching, avoiding unnecessary collect()) and reads from local tables instead of spark.read.format(jdbc).
Three-step prompt structure: Step 1 understands the SQL Server Stored Procedure (extracting referenced tables/views, declared variables/types, business logic, temp tables/cursors); Step 2 generates equivalent PySpark code (DataFrames over raw SQL, Python variables, returning output parameters); Step 3 handles complex constructs (e.g., #TempTable via createOrReplaceTempView).
Batch Execution Example: Executes a SQL query via Python (CREATE OR REPLACE TABLE ... AS SELECT source, ai_query('databricks-meta-llama-3-3-70b-instruct', "{prompt}" || contentfinal) AS output FROM {parsed_table}) to transpile multiple stored procedure files (sp_GetCustomerOrders.sql, sp_GetProductRevenue.sql, sp_GetTopCustomers.sql, sp_InsertOrder.sql) stored in a Unity Catalog Volume into PySpark functions at scale.
Orchestration & Data Migration Strategies
External and Native Orchestration Options:
Azure Data Factory (ADF): Leverage ADF to orchestrate workflows using Native ADF Activities and the Jobs API.
Apache Airflow: Integration provides operators for triggering jobs, including DatabricksRunNowOperator and DatabricksSubmitRunOperator.
Dagster: The dagster_databricks package provides ops including create_databricks_run_now_op and create_databricks_submit_run_op.
dbt: Workflows can orchestrate dbt.
Terraform: Realize the benefits of Infrastructure as Code (IaC) and use the Terraform provider to interact with workspace resources.
SSIS: Transforming SSIS Packages to workflows.
Approaches for One-Time Loads & Ongoing Data Synchronisation:
spark.read.jdbc(): Traditional batch-based approach used from notebooks; good for source systems not supported with other approaches and allows fine-grained control of configuration and partition strategies.
Lakehouse Federation: Similar to JDBC, but connections are defined within Unity Catalog; extremely useful approach for multiple migration scenarios, such as parallel runs and reconciliations.
Autoloader: Used for loading incremental data from cloud storage; great solution if source systems are already being replicated to cloud storage and can support very large volumes.
Lakeflow Connect: Used for loading CDC data from selected source databases; supports low-latency replication of data from source systems and is well suited for parallel run scenarios.
ISV Partner Technologies: Covers all other unsupported source systems; versatile and can support synchronizing entire databases or individual tables (including Arcion, Qlik Replicate, Fivetran, StreamSets, and Rivery for real-time data ingestion).
Data Ingestion Technologies Deep Dive
Lakehouse Federation — Overview & Capabilities:
3-level namespace mapping to UC: Catalog -> Schema -> Table maps to PostgreSQL, Synapse, Snowflake, Redshift, and SQL Server (Database -> Schema -> Table).
2-level namespace mapping to UC: Catalog -> Schema -> Table maps to MySQL (Database -> Table).
Query Pushdowns: The Query Optimizer translates supported operations (filter predicates, aggregation, scan + project) into the target database SQL dialect and pushes down processing to the data source to maximize performance.
Federation Materialized Views: Accelerates federated workloads across external databases (PostgreSQL, MySQL, SQL Server, Snowflake, Azure Synapse, Google BigQuery, Amazon Redshift); provides consistent latency and concurrency, accelerates cross-source joins and complex transformations, and offloads concurrent access from operational databases.
Migration Use Case — One-time loads: Reference data, initial loads prior to batch pipelines, loading realistic test data.
Migration Use Case — Synchronization: Incremental migration, syncing bronze/silver/gold layers, reducing the need to build all new pipelines in one go.
Migration Use Case — Reconciliation / Testing: One-off or ongoing drift comparison between original system and new pipeline output.
Lakehouse Federation Foreign Catalog Setup:
CREATE FOREIGN CATALOG <catalog_name>
USING CONNECTION <connection_name>
OPTIONS (
database <db>
);
SELECT *
FROM <foreign_catalog>.<schema>.<t>
Lakeflow Connect:
- Built-in connectors connecting Data Sources (On-prem databases, Cloud databases, File sources, Enterprise applications) into platform workloads (GenAI & RAG, Data science, Streaming analytics, BI & reporting, Data sharing), built on Unified governance and Efficient compute & storage.
Autoloader — Capabilities & Metrics:
- Scalable exactly-once data ingestion across JSON, CSV, Avro, and Parquet formats.
- Incrementally and efficiently process new data files as they arrive in cloud storage.
- File Notification mode enables event-driven ingestion (automatically sets up Event Grid / Amazon SNS + Azure Queue Storage / Amazon SQS on your behalf).
- Automatically infer schema of incoming files or superimpose what you know with Schema Hints.
- Automatic schema evolution and Rescue data column so you never lose data.
- Streaming metrics dashboard tracks Input vs. Processing Rate (records per second), Batch Duration (in seconds), and Aggregation State (distinct keys).
Autoloader SQL Syntax:
CREATE INCREMENTAL LIVE TABLE sales_orders_raw
COMMENT "The raw sales orders, ingested from /datasets."
TBLPROPERTIES ("quality" = "bronze")
AS
SELECT * FROM cloud_files
("/datasets/retail-org/sales_orders/",
"json", map("cloudFiles.inferColumnTypes", "true"));
Autoloader Python / PySpark Syntax:
df = spark
.readStream
.format("cloudFiles")
.option("cloudFiles.format", "json")
.load("abfss://..." or "s3://")
.<apply your transformations>
.writeStream
.option("checkpointLocation", "/chk/path")
.start("/out/path")
How We Can Help: Services, Training & Partners
Technical Services Activities (Feature activation & best practices across 3 Pillars):
Platform: Workspace Setup, Unity Catalog Setup, Unity Catalog Migration, CI/CD Setup, Observability, Serverless Upgrade, DBR Migration
Data Engineering & Warehousing: LakeFlow: Ingest & Transform, Delta Optimizations & Maintenance, Orchestration & Automation, Data Sharing to External Systems, DBSQL for Admin & Analysts, AI/BI Data Citizen, BB Analyzer (pilot)
ML & GenAI: Feature Engineering, Model Training, Model Deployment, Vector Search, GenAI Apps, Lakehouse Monitoring, MLOps
Service Offerings:
DW Migration – Analyzer: Session 1 gathers source code and runs Analyzer (plus optional troubleshooting); Session 2 reviews output, summarizes results, and shares migration guides/Analyzer User Guide. Prerequisites: Profiler/discovery completed, migration not yet started, source DW identified, DW admin with metadata extraction permissions engaged. Outcome: Customer understands migration approaches; Analyzer output generated for Partners/PS to create SOW.
DBSQL for Admin / Analyst: Session 1 (1 hr 30 min) covers Discovery (SQL editor, query history, dashboards, alerts, partner tools) and Admin setup (SQL warehouses, ACLs/permissions); Session 2 (30 min) for progress check-in. Materials: Getting started with SQL, Queries and Data Visualization, Query Federation, SQL Administration, Partner Connect. Prerequisites: General Lakehouse understanding and ANSI SQL knowledge (Analysts); defined roles for Workspace Admins, Users & Data Object Owners (Admins). Outcome: At least 1 SQL warehouse created, 1 SQL query run, 1 dashboard created (optional), and tracking of DBSQL \$DBU changes at 30 and 90 days.
AI/BI - Data Citizen: Session 1 (1 hr 15 min) showcases Assistant, AI/BI Dashboards, and Genie best practices (plus optional build in customer environment); Session 2 (30 min) for progress check-in. Materials: AI/BI, Dashboards, Genie. Prerequisites: General Lakehouse understanding, ANSI SQL/BI background, and identified compliant datasets. Outcome: Customer creates a Dashboard/Genie workspace.
Empower Your Teams with Data+AI Training:
Faster Adoption (Accelerate user onboarding & establish fundamentals): Addresses lack of foundational knowledge, mismatched skills, and low engagement via Fundamentals (1-hour SSO accreditation in Academy), Automated Learning Needs Analysis (5-minute survey for role/skill path), and Getting Started w/ Instructors & Labs (free live hands-on onboarding) to expedite user migrations, avoid new user tech debt, and build user confidence.
Lower Delivery Risk (Proven techniques & best practices): Addresses weak access & auditability controls, inefficient architecture & pipelines, and limited collaboration & DevOps via Role-based ILTs & Hands-on Labs, Blended Learning (1–2 hour weekly modules), and Scaled Learning Programs (Skills at Scale annual subscriptions, private classes, class-based pricing) to expedite time to value, reduce trial-and-error, deliver projects early, and improve technical proficiency.
Help You Deploy Cutting-Edge (Maximize performance/cost ratio & scale): Addresses automation & real-time complexity, scaling ML + Gen AI in production, and managing users and workspaces at scale via Advanced Curriculum Professional ILTs, Tailored Training (custom curriculum aligned to environment), and Community of Experts (forums with R&D, Product & peers) to enable real-time streaming + unstructured use cases, faster model iteration & deployment, and enterprise-grade governance.
Migration Partners & Presales Support:
Migration Categories Covered: Hadoop Migration, Cloud Data Warehousing, On-Prem Data Warehousing, EMR Migration (Presales EMR Migration), Snowflake Migration (Presales Snowflake Migration).
Prequalified Migration & SI Partners: Accenture, Avanade, Blueprint, Capgemini, CT Technologies, Deloitte, Enable Data, EPAM, Impetus, Infosys, LTIMindtree, Lovelytics, Tata Consultancy Services, Wipro.
Migration Assurance Governance & Formula for Success
Proposed Team Structure & Escalation Path:
Governance & Leadership: Executive Sponsor, Steering Committee, Project Leadership (Project Sponsor, Program Lead), Program Governance.
Customer Stakeholders & Subject Matter Experts: Business Stakeholders, Data and Application Owners, Solution Architects, Existing Tools, Customer Experience.
Customer's Platform Owner, Consumer & Analyst: Platform Owner, Enterprise Architect, End Consumer, Data Analyst.
PS / SI Subject Matter Advisors: Resident Solution Architect (RSA), Sr. Consultant, Project Manager, CS Engineer (CSE).
PS / SI Planning & Requirement Gathering: Solutions Consultant, Project Manager, Sr. Consultant.
PS / SI Technical Strategy: Resident Solution Architect (RSA), Enterprise Architect, Project Manager.
PS / SI Implementation: Resident Solution Architect, Developer, Project Manager.
PS / SI Operations: Solutions Consultant, Project Manager.
Migration Assurance Services — Approach:
Phase 1 — Definition (Partner Driving Migration Execution): Technical Execution Plan, Resourcing, Platform Checklist, Kickoff Meeting.
Phase 2 — Planning (Partner Driving Migration Execution): Architecture, Planning & Governance, Use Case Alignment, Timeline, Scope.
Phase 3 — Migration Execution (Partner Driving Migration Execution): Historical data, code migration & data validation; Integration & User Acceptance Testing.
Phase 4 — Close-out (Partner Driving Migration Execution): Final Signatures, Close and Next Steps, Knowledge Transfer & Documentation.
Ongoing Support Layers: Professional Services, Education & Training (on-demand help/guidance), and Account Team.
Formula for Successful Migrations:
Migration Tooling: Comprehensive coverage across Data Warehouse & Legacy ETL tooling, precise assessments, accurate conversions, and automated validation & reconciliation.
Expertise & Experience: Hundreds of completed engagements and partners with a proven track record.
Top comments (0)