Learn

Your lakehouse,generated.

Every layer on Databricks, no notebook typed by hand.

The concept

Lake storage. Warehouse tables.

A data lake keeps data as files, usually Parquet, in low-cost object storage such as Azure Data Lake Storage, with storage and compute paid for separately. On its own a lake has no transactions, no enforced schema and no reliable update or delete, so a folder of files is hard to trust as a table. Delta Lake adds a transaction log on top of those files. The folder becomes a table you can merge into, update, delete from and hold to a schema.

A lakehouse runs warehouse tables and SQL straight on that storage. On Databricks the tables are Delta tables governed by Unity Catalog, addressed by three-part names (catalog, schema, table) and queried from notebooks, jobs or SQL warehouses. On Snowflake, files land in a Snowflake stage and COPY loads them into Snowflake tables.

  • Files in your own storage
  • A transaction log that makes them tables
  • Three-part names in Unity Catalog
The architecture

Bronze, silver, gold. Every hop is code.

Most lakehouses refine data in layers, the pattern Databricks calls the medallion architecture. Bronze holds raw data as it arrived, with load metadata. Silver holds data that is cleansed, integrated and historized. Gold holds business-ready tables, usually facts and dimensions.

BimlFlex maps every medallion layer to a layer it already builds. Source data lands as Parquet in your storage. Staging and persistent staging are bronze, with every version of every row kept. The Data Vault is silver: hubs, links, satellites, point-in-time and bridge tables. The data marts are gold. Each layer can have its own catalog in Unity Catalog, as in the build below.

  • Landing: Parquet in your storage
  • Bronze: staging and persistent staging
  • Silver: the Data Vault
  • Gold: facts and dimensions
The problem

One table. Every layer. Every file.

Each source table needs code at every hop. A create script for each layer's Delta table, with its location, properties, keys and clustering. A load for each layer: read the files, compute the keys and the row hash, keep only real changes, merge, close out old versions. Then a place in the job graph, so nothing loads before what it depends on.

By hand that is a stack of notebooks for every table, and the stack grows with each source system. The pattern is the same each time, but each copy is typed on its own, so naming drifts, one load hashes differently from the next, and a change to the pattern means opening every notebook again.

  • Table scripts for every layer
  • Loads for every layer
  • A job graph that stays in order
Bronze · staging and persistent staging

Land it. Hash it. Keep every version.

The generated staging notebook reads the landed Parquet files straight from storage. Business keys and the row hash are computed in the SQL as the files are read, with schema merging on by default, so a new source column does not stop the load. A window over the row hash then drops rows that did not really change.

What is left replaces the staging table and is appended to persistent staging, so bronze keeps the full history of every row. The load itself is plain Databricks SQL, in cells you can read. Settings choose how files are read, with COPY INTO or a temporary view over read_files, and whether each load ends with OPTIMIZE or ANALYZE TABLE.

  • Keys and row hash computed as the files load
  • Only real changes kept
  • Full history in persistent staging
Silver · the Data Vault

Silver is a Data Vault, on Delta.

A Data Vault built as Delta tables on Databricks is a Delta Vault: hubs, links and satellites in the lake, generated from your model. For each source table, a main notebook runs the loads in order: the hub, then the link, then the satellites.

Every satellite gets two loads, Full and Delta. The main notebook counts the satellite's rows: an empty satellite gets the Full load, and from then on each run takes the Delta load. Point-in-time and bridge tables are generated as well, each with its own load notebook.

  • Hubs, links and satellites as MERGE loads
  • Full the first time, Delta after that
  • Point-in-time and bridge tables included
Gold · data marts

Gold is facts and dimensions.

Gold dimensions load from views over the vault. The generated load computes a hash of the dimension's columns, then one MERGE does the work: a new business key is inserted, and an existing row is updated in place only when its hash has changed. Rows that did not change are left alone.

Columns that keep history work as Type 2: the new version is inserted, and the old one gets an end date and its current flag set to false. Facts load from their own views over the vault too.

  • Loaded from views over the vault
  • Type 1 changes updated in place
  • Type 2 versions closed out
Delta, done properly

Every table, built the same way.

The create scripts carry the Databricks practice your platform team asks for, on every table, set once in the Databricks settings. Table Properties sets the Delta properties; the default turns on optimized writes and auto compaction. Use Liquid Clustering clusters each table on its key columns. Add Primary Keys declares the key. Add SQL Comments and Add SQL Tags carry your descriptions and business metadata into Unity Catalog.

Deployment is generated too. A deploy notebook for each catalog creates the catalog with its managed location, creates its schemas, then runs every table script. Change a setting, rebuild, and every table follows.

  • Properties, clustering and keys from settings
  • Descriptions and tags in Unity Catalog
  • A deploy notebook per catalog
Pushdown Processing

Data Factory copies. Databricks transforms.

BimlFlex runs a Databricks lakehouse two ways. In the traditional route, Data Factory Copy activities land the Parquet files and Data Factory Notebook activities run each notebook. With Pushdown Processing on, the staging, Data Vault and data mart transformations run inside Databricks jobs, and Data Factory starts them with a Databricks Job activity.

The jobs are written as a Databricks Asset Bundle: a starter databricks.yml with dev and prod targets, and a job file for each batch. Each solve order in a batch becomes a sub-job, chained with depends_on, so a satellite never starts before its hub. The bundle is plain YAML in your repo, so a change to the job graph shows up in a pull request.

  • Native Data Factory pipelines and Databricks jobs
  • A job graph compiled from the model
  • YAML you can review
Restart, built in

A failed job doesn't redo the copy.

Copying from the sources is often the slowest part of a run. With Pushdown Processing, if the Databricks job fails after the Data Factory copies have succeeded, the BimlCatalog, the run database on your own SQL Server, marks the run for a Databricks restart.

On the next run the pipeline reads that status. The copies are skipped, and the Databricks job gets the failed run's ID as its row_audit_id. The notebooks find the data already landed under that ID and run only the transformations.

  • Copies that succeeded are not repeated
  • Landed data found again by run ID
  • Only the transformations run again
Snowflake

Same model on Snowflake.

The same metadata builds the layers on Snowflake. Data lands in a Snowflake stage and Snowflake's COPY command loads it. The build writes the table scripts and every load as a Snowflake stored procedure, run by Data Factory or SSIS.

The vault logic is the same on both. The hub load on Databricks and the hub load on Snowflake are one MERGE, written in each platform's dialect and wrapped the way each platform runs it: a SQL notebook cell on Databricks, a JavaScript stored procedure on Snowflake.

  • Landing through a Snowflake stage
  • A stored procedure for every load
  • Data Factory or SSIS to run them
Your way in

Pick how much of the lakehouse you generate.

All three run on Biml, the XML language for data warehouse assets, with BimlScript to loop over metadata. They differ in how much of the lakehouse they write for you.

BimlFlex
BimlExpress
BimlStudio
You have
BimlFlexA lakehouse to build on Databricks or Snowflake
BimlExpressSSIS today, and want to learn template-driven generation first
BimlStudioYour own framework, and pipelines that must build in CI/CD
What it writes
BimlFlexEvery layer from one model: table scripts, loads, deploy notebooks, Data Factory pipelines and Databricks jobs
BimlExpressSSIS packages and table scripts for SQL Server, from your templates
BimlStudioData Factory pipelines in Biml: Databricks linked service, Delta Lake datasets, Notebook and Job activities
Lakehouse layers
BimlFlexLanding, bronze, silver and gold, ready-made
BimlExpressNot lakehouse code
BimlStudioYou write the patterns
Builds from
BimlFlexBimlFlex, BimlStudio included
BimlExpressVisual Studio 2012 to 2019
BimlStudioBimlStudio, the command line or MSBuild
Price
BimlFlexSubscription
BimlExpressFree
BimlStudio14-day free trial
BimlFlex
You have
A lakehouse to build on Databricks or Snowflake
What it writes
Every layer from one model: table scripts, loads, deploy notebooks, Data Factory pipelines and Databricks jobs
Lakehouse layers
Landing, bronze, silver and gold, ready-made
Builds from
BimlFlex, BimlStudio included
Price
Subscription
See pricingContact sales
BimlExpress
You have
SSIS today, and want to learn template-driven generation first
What it writes
SSIS packages and table scripts for SQL Server, from your templates
Lakehouse layers
Not lakehouse code
Builds from
Visual Studio 2012 to 2019
Price
Free
Download freeCompare the three
BimlStudio
You have
Your own framework, and pipelines that must build in CI/CD
What it writes
Data Factory pipelines in Biml: Databricks linked service, Delta Lake datasets, Notebook and Job activities
Lakehouse layers
You write the patterns
Builds from
BimlStudio, the command line or MSBuild
Price
14-day free trial
Start the free trialWhat is Biml

Generate the lakehouse. Keep the model.

BimlFlex pricing is online. Buy there, or talk to sales for quotes, resellers and large teams.