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
- Kind of solution
- Software engineering assistant
- Who built it
- Built with a partner (Xebia)
- Human oversight
- Assists people
- Organization
- Enterprise, 250 to 999 employees
- AI types
- Generative AI, Agentic AI
tl;drClaude Code parsed 2,400 legacy SQL objects into a knowledge graph in two hours.See the results
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.”
Technology and architecture
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
- Claude Code reads the metadata and SQL structure of the SQL objects. The AI policy keeps customer data out of the run1.
- Claude Code writes the artifacts of the conceptual layer1.
- Xebia’s team runs focused feedback sessions with marketing, data, and architecture stakeholders, who validate the knowledge graph1.
- 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.
- The team locks the conceptual and logical layers and implements the physical model in dbt on Databricks1.
- 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
- two hours Time for Claude Code to parse the legacy SQL estate1
- 2,400 SQL objects Legacy SQL objects parsed into a knowledge graph1
Sources by publication date
- Vendors and partners 4
- Press, academic, and regulators 2
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.
- Developer tools
- Assistant platform
- Code repository (documented in this case study)
- Code index
- Deterministic code analysis
- Standards and guidelines
- Code and platform map (documented in this case study)
- Prompts and context
- Language model
- Automated checks
- Checker model
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers 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.
In the library
- How Uber scaled coding agents and cut cost per session Uber
- Pictet takes Claude Code from developers to business teams Pictet Group
- TUI cuts external IT staff with AI coding assistants TUI Group
- eBay's Copilot pilot cut pull request merge time by 17% eBay
- Meta's just-in-time LLM tests catch bugs before code lands Meta
- AI coding assistants speed up software work at Deutsche Bank Deutsche Bank
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
- Source 1:
How Sunweb Accelerated Data Modeling with Agentic AI
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.
- Source 2:
Supporting excerpts (1)
Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.
- Source 3:
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.
- Source 4:
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.
- Source 5:
Building the DT Semantic Layer: Creating a Single Source of Truth with Agent-Driven Data Modeling
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
- Source 6:
Automating Data Documentation with AI: How 7-Eleven Bridged the Metadata Gap
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
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.