Model driven Data Engineering
Data Engineering powered by the data model and Collibra
What if we could build our data warehouse using the data model? This article describes how we used our Business Object Model and Logical Model to generate large parts of our Datawarehouse, using Collibra, dbt, Snowflake and Python.
Overview

The Conceptual Model and Logical Model, including technical definitions and enumerations, are documented in Collibra.
Source systems exchange data via JSON messages, which are also ingested by the Data Warehouse (DWH). The JSON definitions are constructed using a Python script that pulls information from Collibra, ensuring that all communication follows the Logical Data Model (LDM) structure and definitions.
These JSON messages land in the data lake, where a second Python script generates dbt models to create external views, including the necessary metadata, from Collibra to make the data available in a tabular format on Snowflake. The data is now accessible “as-is” within the Bronze Layer.
The Silver Layer is based on the Data Vault 2.0 (DV2.0) methodology. Since the definitions are already known, the dbt scripts for the Raw Layer can also be generated directly from Collibra.
Components
Collibra
- Logical Datamodel
- Definitions (Entity, Attribute, Enumerations) => the physical part of the model
- Datamanagement
dbt
- ETL engine
- tests
- Source 2 Target lineage (dbt docs)
Snowflake
- database
- compute
Python
- Collibra API
- JSON generator
- dbt model generator
- flattened view generator
Data Vault
Data Vault is a highly standardized model. At it’s core are only three loading patterns. Applying naming conventions makes this a very automatable model. For instance, if you know the Business Key and source system (which we had defined in Colibra), you have can load your hub. With a Business Key and Foreign Keys you can load the Links. The Business Key and remaining attributes in scope load the Satelite.
And because the Conceptual and Logical Model translate to the Data Vault Ensembles, our warehouse can be build and loaded driven by the model.