Choose your region

    Lists show the case studies of your region first. Browse and search still hold every case study.

    Europe
    North America

    Sunweb maps 2,400 legacy SQL objects with Claude Code

    Sunweb Group and Xebia used Claude Code to reverse-engineer the undocumented SQL of a legacy Customer Data Platform into a conceptual data model for a migration to Databricks.

    Sunweb GroupNetherlandsHotels and travelIn production
    Scale
    2,400 SQL objects parsed
    Scenario
    AI-assisted data modeling for a platform migration
    Business function
    Software engineering
    Who built it
    Built with a partner (Xebia)
    Human oversight
    Assists people
    Organization
    Enterprise, 250 to 999 employees
    AI types
    Generative AI, Agentic AI

    Sources and their publishers

    This case study draws on reporting by the following publishers. Enterprise AI Case Studies combined these accounts and added its own explanation. The reporting, and every passage quoted from it, belongs to whoever published or supplied it.

    1. Xebia

    2. Anthropic

    3. dbt Labs

      • What is dbt?Source 3Product documentationNov 20, 202620 Nov 2026
    4. Databricks

    5. Digital Turbine

    tl;drClaude Code parsed 2,400 legacy SQL objects into a knowledge graph in two hours.See the results

    View the solutionBuild this solution yourself

    Sunweb Group uses Claude Code to reverse-engineer the SQL of its legacy Customer Data Platform (CDP) into a conceptual data model1. The Dutch travel group is moving the CDP to a new Customer 360 platform on Databricks, with consultants from Xebia1.

    By August 2026, Claude Code had parsed 2,400 SQL objects in two hours and produced a knowledge graph of their entities and relationships1. The team validated that output with stakeholders, agreed on a new Kimball star schema, and implemented the schema in dbt1.

    Before the deployment

    Sunweb Group serves around 1.3 million travelers a year and employs around 450 people, with headquarters in Rotterdam1. The group had to move its legacy CDP systems to a new Customer 360 platform on Databricks on a tight timeline1. It also wanted marketing capabilities that the legacy platform couldn’t support1.

    The legacy estate had the following problems:

    • Over 2,400 SQL objects had accumulated across years of departmental growth1.
    • Business meaning was scattered across metadata, stored procedures, cryptic codes, and tribal knowledge, and it wasn’t written down1.
    • A manual review would have consumed most of the available time before any new design work could start1.

    Sunweb contacted Xebia to explore the estate1.

    What was built

    The solution uses Claude Code to read the legacy SQL and write the conceptual layer of the data model, which the team never had1. People then validate that layer and build the new model on it1. The work is divided as follows:

    • Claude Code: Parses the 2,400 SQL objects and produces the conceptual layer. While the model evolves, the agents keep the documentation and artifacts in sync and flag anti-patterns1.
    • AI policy: Limits Claude Code to metadata and SQL structure. The agent never reads customer data1.
    • Stakeholders: Marketing, data, and architecture stakeholders validate the conceptual layer in feedback sessions that Xebia’s team runs1.
    • Sunweb team and Xebia consultants: Iterate the new Kimball star schema with the stakeholders and implement it in dbt on Databricks1.

    “They accelerated decision-making and execution, while providing strong project steering and upskilling our team through close collaboration.”

    Oriol Pueyo, head of engineering at Sunweb Group1

    Technology and architecture

    Figure 1From legacy SQL to a star schema in dbt
    From legacy SQL to a star schema in dbtThe legacy Customer Data Platform passes the metadata and SQL structure of its SQL objects to Claude Code. Claude Code writes the conceptual layer artifacts, which include the knowledge graph. The artifacts are the input for stakeholder feedback sessions with marketing, data, and architecture stakeholders. The sessions produce the agreed Kimball star schema, which the team implements in dbt on Databricks. Claude Code also flags anti-patterns in the star schema as it evolves. No part of the figure is inferred.metadata and SQL structure (data) · Documented in source [1]writes artifacts (data) · Documented in source [1]input for validation (handoff to people) · Documented in source [1]agreed model (data) · Documented in source [1]physical implementation (data) · Documented in source [1]flags anti-patterns (trigger or control) · Documented in source [1]Legacy Customer Data Platform · System · Documented in source [1]SYSTEMLegacyCustomerData PlatformClaude Code · AI model · Documented in sources [1] [2]AI MODELClaude CodeConceptual layer artifacts · Data · Documented in source [1]DATAConceptuallayer artifactsStakeholder feedback sessions · Team · Documented in source [1]TEAMStakeholderfeedbacksessionsKimball star schema · Data · Documented in source [1]DATAKimball starschemadbt on Databricks · System · Documented in source [1]SYSTEMdbt onDatabricksmetadata andSQL structurewrites artifactsinput forvalidationagreed modelphysicalimplementationflagsanti-patternsFrom legacy SQL to a star schema in dbtThe legacy Customer Data Platform passes the metadata and SQL structure of its SQL objects to Claude Code. Claude Code writes the conceptual layer artifacts, which include the knowledge graph. The artifacts are the input for stakeholder feedback sessions with marketing, data, and architecture stakeholders. The sessions produce the agreed Kimball star schema, which the team implements in dbt on Databricks. Claude Code also flags anti-patterns in the star schema as it evolves. No part of the figure is inferred.metadata and SQL structure (data) · Documented in source [1]writes artifacts (data) · Documented in source [1]input for validation (handoff to people) · Documented in source [1]agreed model (data) · Documented in source [1]physical implementation (data) · Documented in source [1]flags anti-patterns (trigger or control) · Documented in source [1]Legacy Customer Data Platform · System · Documented in source [1]SYSTEMLegacy CustomerData PlatformClaude Code · AI model · Documented in sources [1] [2]AI MODELClaude CodeConceptual layer artifacts · Data · Documented in source [1]DATAConceptuallayer artifactsStakeholder feedback sessions · Team · Documented in source [1]TEAMStakeholderfeedback sessionsKimball star schema · Data · Documented in source [1]DATAKimball star schemadbt on Databricks · System · Documented in source [1]SYSTEMdbt on Databricksmetadata and SQL structurewrites artifactsinput for validationagreed modelphysical implementationflags anti-patterns
    • AI component
    • Data
    • Trigger or control
    • Handoff to people
    Sources [1][2]
    Claude Code writes the conceptual layer from the legacy SQL, and stakeholders validate it before the team builds the star schema.

    The following table lists the components of the solution.

    Layer What they used Role Source
    Task agent Claude Code An agentic coding tool that reads the legacy SQL objects and writes the conceptual layer 1, 2
    Knowledge graph Knowledge graph Holds the extracted entities and relationships as the input for stakeholder validation 1
    Business or operational system Legacy Customer Data Platform Holds the SQL objects that Claude Code reads 1
    Data preparation dbt A framework that builds data models from SQL select statements, and holds the physical star schema here 1, 3
    Data platform and storage Databricks An analytics platform for data and AI solutions, which runs the new Customer 360 platform 1, 4

    Conceptual layer

    Claude Code produces the following artifacts from the SQL objects:

    • Knowledge graph: The entities in the estate and the relationships between them1.
    • Taxonomy: How the concepts were named and classified1.
    • Ontology: The business rules that the stored-procedure logic encodes1.
    • Glossary and map: The definitions of the terms, and a map of the procedural estate1.

    Data inputs

    The solution uses the following data:

    • SQL objects: The metadata and SQL structure of the objects in the legacy CDP1.
    • Data Vault model: A Data Vault model, which the team translated1.

    How the SQL estate flows through the system

    1. Claude Code reads the metadata and SQL structure of the SQL objects. The AI policy keeps customer data out of the run1.
    2. Claude Code writes the artifacts of the conceptual layer1.
    3. Xebia’s team runs focused feedback sessions with marketing, data, and architecture stakeholders, who validate the knowledge graph1.
    4. The sessions iterate a new Kimball star schema in the logical layer. The schema reflects the current data and the features that Sunweb wants to build next1.
    5. The team locks the conceptual and logical layers and implements the physical model in dbt on Databricks1.
    6. The agents keep the documentation and artifacts in sync as the model evolves. They flag anti-patterns and check the model against best practices1.

    Results

    By August 2026, the team had a validated conceptual layer and a star schema implemented in dbt on Databricks1. The following table lists the published results.

    Metric Before After Scope and timeframe Reported by
    Time to parse the legacy SQL estate Not disclosed two hours The SQL objects of the legacy CDP Xebia, measured1
    Legacy objects in the knowledge graph Not disclosed 2,400 SQL objects Metadata and SQL structure, no customer data Xebia, measured1
    Time from knowledge graph to star schema in dbt Not disclosed Days Feedback sessions, logical model, and dbt implementation Xebia, measured1

    The metrics measure the following:

    • Parsing time: Covers the parse of the objects and the production of the conceptual layer1.
    • Time to a star schema: Starts at the finished knowledge graph. With the conceptual and logical layers locked, the physical implementation in dbt was close to mechanical1.
    • Stakeholder review: The result held up under adversarial review by the stakeholders1.

    Lessons learned

    The agent did exploration work that the team had no time to do by hand1. The team started its design from a written conceptual layer, and that order made the dbt implementation close to mechanical1.

    The AI policy shaped the design. Claude Code read metadata and SQL structure and never customer data, which kept the work within Sunweb’s AI policy1.

    Claude Code’s output didn’t replace stakeholder validation. The conceptual layer was the input for feedback sessions with marketing, data, and architecture stakeholders, and the star schema came out of those sessions1.

    The parsing time covers the parse and the artifacts only. The feedback sessions, the logical model, and the dbt implementation came after it1.

    The figures are Xebia’s, from its customer story about the engagement1. The comparison with a manual review is Xebia’s judgment that such a review would have consumed most of the available time1.

    Case study scorecard

    Build this solution yourself

    Analysis

    What you need

    To build this solution, you need the following in place:

    • A policy on what the agent can read: Sunweb’s AI policy allowed metadata and SQL structure and excluded customer data1. Check that you can give the agent the schema and the procedure code without the rows.
    • Business logic that exists as SQL: Claude Code derived the ontology from the logic in stored procedures1. Rules that exist only as tribal knowledge probably surface in the stakeholder sessions instead.
    • Stakeholders with time to review: Marketing, data, and architecture stakeholders validated the output and shaped the star schema in feedback sessions1.

    Reference architecture

    Software engineering assistant

    A software engineering assistant writes, reviews, tests, or migrates code in the tools that developers already use, and a developer approves its output. A language model writes a change, a test, or a review comment from the code for a task, and automated checks and a checker model build, test, and filter it. A reviewer approves each checked proposal in code review before it merges, and developers do the work that fails the checks by hand.

    A check mark shows a building block that this case study's sources document.

    Open the reference architecture

    Others who built it

    • Digital Turbine: Uses Claude with Sonnet 4.6 in a guided workflow in which a designer defines the business entities of its semantic layer, and a compiler turns each definition into a production pipeline5.
    • 7-Eleven: Built an agentic AI workflow on Llama 4 Maverick that moved its data documentation from Confluence into Databricks, and it completed the initial migration in days instead of months6.

    Cite this case study

    Enterprise AI Case Studies. "Sunweb maps 2,400 legacy SQL objects with Claude Code." Updated Nov 20, 2026. https://case-studies.ai/case-studies/engineering-and-research/ER-025-legacy-sql-data-modeling-sunweb/

    @misc{csai-er-025,
      author = {{Enterprise AI Case Studies}},
      title = {{Sunweb maps 2,400 legacy SQL objects with Claude Code}},
      year = {2026},
      note = {Updated 2026-11-20},
      url = {https://case-studies.ai/case-studies/engineering-and-research/ER-025-legacy-sql-data-modeling-sunweb/}
    }

    Sources

    The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership

    1. Source 1:

      How Sunweb Accelerated Data Modeling with Agentic AI

      Partner or vendorXebia, Aug 19, 202619 Aug 2026Accessed Nov 20, 202620 Nov 2026

      Supporting excerpts (19)
      • Sunweb Group moves from a legacy Customer Data Platform into a modern 360 Data Platform, accelerating data modeling processes with Agentic AI.
      • Founded in 1991 in the Netherlands, Sunweb Group is a leading European travel group with an asset-light business model, welcoming around 1.3 million travelers each year and generating approximately €1.2 billion in annual revenue.
      • Sunweb Group employs around 450 people across seven hubs in Europe, with its headquarters in Rotterdam.
      • Sunweb team and Xebia consultants auto-extracted a knowledge graph from 2,400 SQL objects, translated a Data Vault model, and iterated a new Kimball star schema with stakeholders, then implemented it all in dbt on Databricks.
      • Sunweb Group needed to migrate its legacy Customer Data Platform (CDP) systems onto a new Customer 360 platform on Databricks on a tight timeline.
      • They also used that migration as an opportunity to unlock marketing capabilities that the current platform could not support.
      • over 2,400 SQL objects accumulated across years of departmental growth, with business meaning scattered across metadata, stored procedures, cryptic codes, and tribal knowledge rather than documentation
      • Reviewing that estate manually would have consumed most of the available runway before any new design work could start.
      • To do the exploration thoroughly, Sunweb contacted Xebia.
      • Sunweb teams partnered with Xebia consultants to use Claude Code in line with the client's AI policy (metadata and SQL structure only, never customer data) to perform the archaeological work that the team had no time to do manually.
      • In just two hours, Claude Code parsed the 2,400 objects and produced the conceptual layer the team had never had: a knowledge graph of entities and relationships, a taxonomy of how concepts were named and classified, an ontology of the business rules encoded in stored-procedure logic, a definitions glossary, and a map of the procedural estate.
      • That foundation became the input for stakeholder validation rather than a substitute for it.
      • They accelerated decision-making and execution, while providing strong project steering and upskilling our team through close collaboration.
      • Head of Engineering, Sunweb Group
      • The Result: From Knowledge Graph to dbt Star Schema in Days
      • ran focused feedback sessions with marketing, data, and architecture stakeholders, iterating a new Kimball star schema in the data modeling logical layer that reflected both current reality and the features Sunweb wants to build next.
      • With the conceptual and logical layers locked, the physical implementation in dbt became close to mechanical.
      • In the meantime, the agents kept the documentation and artifacts in sync as the model evolved, flagging anti-patterns and keeping best practices in check.
      • The result held up brilliantly under adversarial stakeholder review.
    2. Source 2:

      Claude Code overview

      Product documentationAnthropic, Nov 20, 202620 Nov 2026Accessed Nov 20, 202620 Nov 2026

      Supporting excerpts (1)
      • Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.
    3. Source 3:

      What is dbt?

      Product documentationdbt Labs, Nov 20, 202620 Nov 2026Accessed Nov 20, 202620 Nov 2026

      Supporting excerpts (2)
      • dbt transforms raw warehouse data into trusted data products. You write simple SQL select statements, and dbt handles the heavy lifting by creating modular, maintainable data models
      • dbt works alongside your ingestion, visualization, and other data tools, so you can transform data directly in your cloud data platform.
    4. Source 4:

      What is Databricks?

      Product documentationDatabricks, Oct 29, 202629 Oct 2026Accessed Nov 20, 202620 Nov 2026

      Supporting excerpts (1)
      • Databricks is a unified, open analytics platform for building, deploying, sharing, and maintaining enterprise-grade data, analytics, and AI solutions at scale.
    5. Source 5:

      Building the DT Semantic Layer: Creating a Single Source of Truth with Agent-Driven Data Modeling

      IndependentDigital Turbine, Aug 13, 202613 Aug 2026By Dan Ferrante, Krystian Kurek, Kyrylo Yershov, Sarit Banerjee, and VJ DaveyAccessed Nov 20, 202620 Nov 2026

      Supporting excerpts (2)
      • We followed the approach that this first phase would be a low- to no-code generation process using Claude as the backing agentic AI assistance technology. To keep costs lower and because we were satisfied with its behavioral characteristics, Sonnet 4.6 was used as the LLM.
      • a designer defines a business concept through a guided agentic workflow, the definition is validated and stored in the metadata registry, and the compiler transforms it into a fully deployed, tested, production pipeline
    6. Source 6:

      Automating Data Documentation with AI: How 7-Eleven Bridged the Metadata Gap

      IndependentDatabricks, Sep 16, 202516 Sep 2025By Yash Mahendra ShingviAccessed Nov 20, 202620 Nov 2026

      Supporting excerpts (4)
      • 7-Eleven used an agentic AI workflow to build an intelligent multistage pipeline that automated the entire documentation migration process.
      • completing the initial migration in days instead of months
      • 7-Eleven developed a sophisticated agentic AI workflow powered by Llama 4 Maverick, deployed through Databricks Model Serving, that automated the entire documentation migration process through an intelligent multistage pipeline
      • Traditionally, 7-Eleven’s data dictionary and documentation lived in Confluence pages

    More in Engineering & Research

    View all