For the complete documentation index, see llms.txt. This page is also available as Markdown.

Materialization behavior

Understand how Vulcan model kinds map to Delta Lake operations on Databricks.

With a validated gateway, this is the build stage. Choose a model kind and understand its Delta Lake operation before running it.

Materialization behavior per model kind

SQL models compile to Databricks SQL. They execute on the configured SQL warehouse over Unity Catalog Delta tables.

Model kind
Databricks operation

FULL

INSERT OVERWRITE (replaces table contents; Delta, UC-managed).

VIEW

CREATE OR REPLACE VIEW (staging / intermediate layer).

INCREMENTAL_BY_TIME_RANGE

INSERT OVERWRITE by time-column partition (overwrites the whole partition for the window).

INCREMENTAL_BY_UNIQUE_KEY

MERGE on the unique key (ACID upsert via Delta Lake).

INCREMENTAL_BY_PARTITION

REPLACE WHERE by partitioning key (Delta partition-scoped overwrite).

SCD2

MERGE INTO Delta table (Maintains historical versions of records by expiring the existing record and inserting a new version when data changes.)

A typical layering pattern: declare Bronze/source tables in inputs.yaml, alias raw columns to business names in VIEW staging models, build gold dimensions as FULL, and build the gold fact as INCREMENTAL_BY_TIME_RANGE partitioned on the date column.

MODEL (
  name marts.fct_sales,
  kind INCREMENTAL_BY_TIME_RANGE (
    time_column order_date
  ),
  grain (ORDER_LINE_ID)
);
SELECT ...
FROM   intermediate.int_order_items
WHERE  order_date BETWEEN @start_date AND @end_date;

Identifier casing

Cross-catalog external models and lifecycle DDL

vulcan create_external_models may not discover tables outside the configured catalog (for example, samples.tpch). Declare them in inputs.yaml, or the linter throws Table not found and lineage stops at the model boundary.

Wrap any DDL in pre_statements / post_statements that should run only on real execution, or vulcan plan executes it:

To make forward-only structural changes, set the Delta column-mapping property on the model, otherwise ALTER operations such as dropping a column fail with DELTA_UNSUPPORTED_DROP_COLUMN:

Next step

After models deploy, use Endpoints to serve Data Product data.

Last updated

Was this helpful?