Kinds
INCREMENTAL, FULL, VIEW, EMBEDDED, SEED, and SCD Type 2 model kinds, and their materialization strategies by engine.
Model kinds determine how Vulcan loads and processes your data. Each kind fits different use cases. Some rebuild everything from scratch, others update incrementally, and some create views that compute on demand.
FULL
FULL models are the simplest kind. They rebuild everything from scratch every time they run. No incremental logic, no time columns, no unique keys. Run the query and replace the entire table.
When to use FULL:
Small datasets where rebuilding is fast and cheap.
Aggregate tables without a time dimension.
Tables that change completely each run (like a "current state" snapshot).
Development and testing.
When NOT to use FULL:
Large datasets (slow and expensive).
Time-series data (use
INCREMENTAL_BY_TIME_RANGEinstead).Tables that only change partially (use incremental kinds).
The trade-off is simplicity vs performance. FULL fits small tables; incremental kinds save time and money on large tables.
A FULL model kind:
MODEL (
name vulcan_demo.full_model,
kind FULL,
start '2025-01-01',
grains (customer_id)
);
SELECT
c.customer_id,
c.name AS customer_name,
c.email,
COUNT(DISTINCT o.order_id) AS total_orders,
COALESCE(SUM(oi.quantity * oi.unit_price), 0) AS total_spent,
COALESCE(SUM(oi.quantity * oi.unit_price), 0) / NULLIF(COUNT(DISTINCT o.order_id), 0) AS avg_order_value
FROM vulcan_demo.customers AS c
LEFT JOIN vulcan_demo.orders AS o
ON c.customer_id = o.customer_id
LEFT JOIN vulcan_demo.order_items AS oi
ON o.order_id = oi.order_id
GROUP BY c.customer_id, c.name, c.email
ORDER BY total_spent DESCMaterialization strategy
Depending on the target engine, models of the FULL kind are materialized using the following strategies:
Spark
INSERT OVERWRITE
Databricks
INSERT OVERWRITE
Snowflake
CREATE OR REPLACE TABLE
| Postgres | DROP TABLE, CREATE TABLE, INSERT | | DuckDB | CREATE OR REPLACE TABLE |
VIEW
Unlike the other kinds, VIEW models don't store data. They create a virtual table (a view) that runs your query every time someone queries it.
How it works: when a downstream model or user queries your VIEW model, the database executes your query on the fly. No data is pre-computed or stored.
When to use VIEW:
Simple transformations that are fast to compute.
When you want always-fresh data (no caching).
When storage is expensive but compute is cheap.
For lightweight transformations that don't need materialization.
When NOT to use VIEW:
Expensive queries that run frequently (you pay the compute cost every time).
Complex aggregations or joins (materialize these instead).
Python models (VIEW isn't supported for Python; use SQL).
A VIEW model kind:
Materialized views
Turn a VIEW into a materialized view by setting materialized: true. Materialized views store the query results (like a table) but refresh automatically when the underlying data changes (like a view).
Set it up:
Vulcan recreates the materialized view only when your query changes or the view doesn't exist. This gives the performance benefits of materialized views without unnecessary refreshes.
EMBEDDED
EMBEDDED models are reusable SQL snippets. They don't create tables or views; their query is injected directly into any downstream model that references them, as a subquery.
Why use this? Define common logic once and reuse it everywhere instead of copying it across models (for example, a CTE that filters active customers). It's a macro for SQL.
Use it for:
Common CTEs used across multiple models.
Reusable business logic (like "active customers" or "valid orders").
Avoiding code duplication.
An EMBEDDED model kind:
SEED
The SEED model kind specifies seed models that use static CSV datasets in your Vulcan project.
How it works: point to a CSV file, define the schema, and Vulcan loads it into a table. The data reloads only when you change the model definition or update the CSV file.
Use cases:
Reference data (countries, states, categories).
Lookup tables.
Static configuration data.
Test data.
A SEED model kind:
INCREMENTAL
Incremental model kinds process only the data that changed between runs. Choose the variant that matches how your model identifies new or updated records.
INCREMENTAL_BY_TIME_RANGE
INCREMENTAL_BY_TIME_RANGE models fit time-series data: events, logs, transactions, or any data that arrives over time. Instead of rebuilding everything each run (like FULL models), these models process only the time intervals that are missing or need updating.
For daily sales data, you don't want to reprocess all of 2023 just to add today's data. With INCREMENTAL_BY_TIME_RANGE, Vulcan processes only the new intervals, saving time and money.
To use this kind, tell Vulcan 2 things:
Which column has your time data: so Vulcan knows how to partition and filter.
A WHERE clause: filters your upstream data by time range using Vulcan's time macros.
Specify the time column in your MODEL DDL using the time_column key:
In addition to specifying a time column in the MODEL DDL, the model's query must contain a WHERE clause that filters the upstream records by time range. Vulcan provides special macros that represent the start and end of the time range being processed: @start_date / @end_date and @start_ds / @end_ds. See Macros for more information.
Timezones
This example implements a complete INCREMENTAL_BY_TIME_RANGE model that specifies the time column name order_date in the MODEL DDL and includes a SQL WHERE clause to filter records by time range:
Time column
Vulcan needs to know which column in your model's output represents the timestamp or date for each record. This is your time_column.
The time column determines which records are overwritten during data restatement and provides a partition key for engines that support partitioning (such as Apache Spark). Specify the time column name in the MODEL DDL kind specification:
By default, Vulcan assumes your time column is in %Y-%m-%d format (for example, 2025-01-15). For a different format, specify it:
Safety feature: Vulcan adds a time range filter to your query's output to prevent data leakage. Even if your WHERE clause has a bug, Vulcan doesn't store records outside the target interval.
How it works:
Your WHERE clause: filters the input data as it's read from upstream tables (makes queries faster).
Vulcan's automatic filter: filters the output data before it's stored (prevents data leakage).
This matters when handling late-arriving data: you don't want to overwrite unrelated records.
Example: your upstream data sometimes uses a different time column than your model. Filter on the upstream column (shipped_date), and Vulcan adds a filter on your model's time column (order_date):
At runtime, Vulcan modifies the model's query:
Partitioning
By default, Vulcan adds your time_column to the partition key. This lets database engines do partition pruning (skipping partitions that don't match your query), making queries faster.
Why this matters: when you query data from the last 7 days, the engine skips scanning old partitions. That's a significant performance gain.
You might want to partition on a different column, or partition on month(time_column) when your engine doesn't support expression-based partitioning.
Disable automatic time column partitioning by setting partition_by_time_column false:
Idempotency
Make incremental by time range model queries idempotent to prevent unexpected results during data restatement.
Idempotent means running the same query multiple times produces the same result. This prevents surprises during data restatement.
Watch out: upstream models can affect idempotency. If you reference a FULL model (which rebuilds everything each run), your incremental model becomes non-idempotent because that upstream data changes every time. This is usually fine, but worth knowing.
Materialization strategy
The INCREMENTAL_BY_TIME_RANGE kind materializes with these strategies, by engine:
Spark
INSERT OVERWRITE by time column partition
Databricks
INSERT OVERWRITE by time column partition
Snowflake
DELETE by time range, then INSERT
| Postgres | DELETE by time range, then INSERT |
INCREMENTAL_BY_UNIQUE_KEY
INCREMENTAL_BY_UNIQUE_KEY models update data based on a unique key. It works like an upsert: if a key exists, update it; if not, insert it.
How it works:
New key: insert the row.
Existing key: update the row with new data.
Key missing from new data: leave the existing row alone.
Why use this? Fits dimension tables, customer records, or any data where you want to keep the latest version of each record without rebuilding everything. Like updating a contact list: update existing contacts and add new ones, but don't delete contacts that aren't in your latest import.
This kind fits datasets with these traits:
Each record has a unique key associated with it.
There is at most one record associated with each unique key.
It is appropriate to upsert records, so existing records can be overwritten by new arrivals when their keys match.
A Slowly Changing Dimension (SCD) fits this description. See the SCD Type 2 model kind.
Provide the name of the unique key column as part of the MODEL DDL:
Composite keys (multiple columns) work too:
Filter upstream records by time range using @start_date, @end_date, or other time macros (like INCREMENTAL_BY_TIME_RANGE). Use this when you want to process records from a specific time period only.
Note: Vulcan's time macros are always in UTC timezone.
Note: Models of the INCREMENTAL_BY_UNIQUE_KEY kind are inherently non-idempotent, so keep this in mind during data restatement. As a result, this model kind doesn't support partial data restatement: restating it recreates the entire table from scratch.
Unique key expressions
You're not limited to column names. Use SQL expressions to create a key from multiple columns or to transform values. Example using COALESCE:
When matched expression
By default, when a key matches (source and target have the same key), Vulcan updates all columns. Sometimes you want more control: preserve certain values, or only update specific columns.
Customize this behavior with when_matched expressions:
Important: use source and target aliases to distinguish between the source (new data) and target (existing table) columns.
Provide multiple WHEN MATCHED expressions for more complex logic:
Redshift supports only the UPDATE or DELETE actions for the WHEN MATCHED clause and doesn't allow multiple WHEN MATCHED expressions. See the Redshift documentation.
Merge filter expression
MERGE operations can be slow on large tables because they typically scan the entire existing table. When you're updating a small subset of records, this is wasteful.
Use merge_filter to add conditions to the MERGE's ON clause. This limits the scan to only the rows that might match.
The merge_filter accepts predicates (single or combined with AND) added to the MERGE operation:
Like when_matched, use source and target aliases to reference the source and target tables.
If your dbt project uses incremental_predicates, Vulcan converts them to merge_filter automatically.
Materialization strategy
The INCREMENTAL_BY_UNIQUE_KEY kind materializes with these strategies, by engine:
Spark
not supported
Databricks
MERGE ON unique key
Snowflake
MERGE ON unique key
| Postgres | MERGE ON unique key |
INCREMENTAL_BY_PARTITION
INCREMENTAL_BY_PARTITION models are computed incrementally by partition. A set of columns defines the model's partitioning key; a partition is the group of rows with the same partitioning key value.
This model kind is for the scenario where data rows should be loaded and updated as a group based on their shared value for the partitioning key.
It works with any SQL engine. Vulcan creates partitioned tables on engines that support explicit table partitioning (such as Databricks).
Vulcan loads new rows based on their partitioning key value:
If a partitioning key in newly loaded data is not present in the model table, Vulcan inserts the new partitioning key and its data rows.
If a partitioning key in newly loaded data is already present in the model table, Vulcan replaces all the partitioning key's existing data rows in the model table with the partitioning key's data rows from the newly loaded data.
If a partitioning key is present in the model table but not present in the newly loaded data, Vulcan leaves the partitioning key's existing data rows unmodified in the model table.
Use this kind only for datasets with these traits:
The dataset's records can be grouped by a partitioning key.
Each record has a partitioning key associated with it.
It is appropriate to upsert records, so existing records can be overwritten by new arrivals when their partitioning keys match.
All existing records associated with a given partitioning key can be removed or overwritten when any new record has the partitioning key value.
Specify the column defining the partitioning key in the model's MODEL DDL partitioned_by key. The MODEL DDL for an INCREMENTAL_BY_PARTITION model:
Use multiple columns for composite partition keys:
Some engines support expression-based partitioning. An example that partitions by month:
Example
A practical example that limits which partitions get updated using a CTE. This is a common pattern to avoid full restatements:
Note: this model kind doesn't support partial data restatement. Restating it recreates the entire table from scratch, which can lead to data loss.
Materialization strategy
The INCREMENTAL_BY_PARTITION kind materializes with these strategies, by engine:
Databricks
REPLACE WHERE by partitioning key
Spark
INSERT OVERWRITE by partitioning key
Snowflake
DELETE by partitioning key, then INSERT
| Postgres | DELETE by partitioning key, then INSERT |
INCREMENTAL_UNMANAGED
INCREMENTAL_UNMANAGED models are for append-only tables. They're "unmanaged" because Vulcan doesn't deduplicate or manage the data; it runs your query and appends the results to the table.
How it works: every time the model runs, Vulcan executes your query and appends the results to the table. No deduplication, no updates, no deletes.
When to use:
Data Vault hubs, links, or satellites.
Event logs where every event must be preserved.
Assertion trails.
Any pattern that requires true append-only semantics.
Set one up:
Note: because it's unmanaged, INCREMENTAL_UNMANAGED doesn't support batch_size or batch_concurrency. Vulcan runs your query and appends the results, with no batching or concurrency control.
SCD Type 2
SCD Type 2 is a model kind that supports slowly changing dimensions (SCDs) in your Vulcan project. SCDs are a common data-warehousing pattern for tracking changes to records over time.
Vulcan adds a valid_from and valid_to column to your model. The valid_from column is the timestamp that the record became valid (inclusive); the valid_to column is the timestamp that the record became invalid (exclusive). The valid_to column is NULL for the latest record.
These models tell you the latest value for a given record and what the values were at any time in the past. Maintaining this history costs more storage and compute. It may not fit sources that change frequently, since the history can grow large.
Note: this model kind doesn't support partial data restatement. Restating it recreates the entire table from scratch, which can lead to data loss, so Vulcan disables data restatement for models of this kind by default.
Vulcan supports 2 ways to detect changes: By Time (recommended) and By Column.
SCD Type 2 by time (recommended)
By Time is the recommended approach. It works with source tables that have an "Updated At" timestamp column (such as updated_at, modified_at, last_changed).
Why it's recommended: the timestamp tells you exactly when a record changed, making your SCD Type 2 table more accurate. You get precise valid_from times based on when the source system actually updated the record.
If your source table has an updated_at column, use this approach.
An SCD_TYPE_2_BY_TIME model kind:
Vulcan materializes this table with this structure:
Change the updated_at column name in your model definition:
Vulcan materializes this table with the following structure:
SCD Type 2 by column
By Column works when your source table doesn't have an "Updated At" timestamp. Vulcan compares the values in specific columns between runs and detects changes.
How it works: specify which columns to watch (or use * to watch all columns). When Vulcan detects a change in any of those columns, it records valid_from as the execution time when the change was detected.
Use this when: your source system doesn't track update timestamps, but you still want to maintain history. The trade-off is that valid_from times reflect when Vulcan detected the change, not when the source system actually changed it.
An SCD_TYPE_2_BY_COLUMN model kind:
Vulcan materializes this table with the following structure:
Change column names
Vulcan adds valid_from and valid_to columns to your table. To use different names (for example, to match your existing schema conventions), customize them:
Vulcan materializes this table with the following structure:
Deletes
A "hard delete" is when a record disappears from your source table entirely. How should SCD Type 2 handle it?
Default behavior (invalidate_hard_deletes: false):
valid_tocolumn stays set toNULL(still considered "valid").If the record is added back,
valid_tois set to thevalid_fromof the new record.
When a record is added back, the new record is inserted with valid_from set to:
SCD_TYPE_2_BY_TIME: the larger of the
updated_attimestamp of the new record or thevalid_fromtimestamp of the deleted record in the SCD Type 2 table.SCD_TYPE_2_BY_COLUMN: the
execution_timewhen the record was detected again.
With invalidate_hard_deletes: true:
valid_tois set to the execution time when Vulcan detected the missing record.If the record comes back later,
valid_tostays unchanged (gap in history).
Which to use:
false(default): missing records are still considered "valid" (no gaps in history). Use this if missing records might be temporary or you prefer continuous history.true: deletes are tracked with precise timestamps. Use this when you want to know exactly when records were deleted, even with gaps in history.
With false, missing records are still considered valid. With true, missing records are treated as deleted at that time.
Example of SCD Type 2 by time in action
A real example. You're tracking a restaurant menu, starting with this source data (with invalidate_hard_deletes: true):
1
Chicken Sandwich
10.99
2020-01-01 00:00:00
2
Cheeseburger
8.99
2020-01-01 00:00:00
3
French Fries
4.99
2020-01-01 00:00:00
The target table, currently empty, is materialized with this data:
1
Chicken Sandwich
10.99
2020-01-01 00:00:00
1970-01-01 00:00:00
NULL
2
Cheeseburger
8.99
2020-01-01 00:00:00
1970-01-01 00:00:00
NULL
3
French Fries
4.99
2020-01-01 00:00:00
1970-01-01 00:00:00
NULL
Now update the source table:
1
Chicken Sandwich
12.99
2020-01-02 00:00:00
3
French Fries
4.99
2020-01-01 00:00:00
4
Milkshake
3.99
2020-01-02 00:00:00
Summary of changes:
The Chicken Sandwich price increased from $10.99 to $12.99.
Cheeseburger was removed from the menu.
Milkshakes were added to the menu.
Assuming your models ran at 2020-01-02 11:00:00, the target table is updated with this data:
1
Chicken Sandwich
10.99
2020-01-01 00:00:00
1970-01-01 00:00:00
2020-01-02 00:00:00
1
Chicken Sandwich
12.99
2020-01-02 00:00:00
2020-01-02 00:00:00
NULL
2
Cheeseburger
8.99
2020-01-01 00:00:00
1970-01-01 00:00:00
2020-01-02 11:00:00
3
French Fries
4.99
2020-01-01 00:00:00
1970-01-01 00:00:00
NULL
4
Milkshake
3.99
2020-01-02 00:00:00
2020-01-02 00:00:00
NULL
A final pass: update the source table:
1
Chicken Sandwich
14.99
2020-01-03 00:00:00
2
Cheeseburger
8.99
2020-01-03 00:00:00
3
French Fries
4.99
2020-01-01 00:00:00
4
Chocolate Milkshake
3.99
2020-01-02 00:00:00
Summary of changes:
The Chicken Sandwich price increased from $12.99 to $14.99.
Cheeseburger was added back to the menu with its original name and price.
Milkshake name was updated to "Chocolate Milkshake".
The target table is updated with this data:
1
Chicken Sandwich
10.99
2020-01-01 00:00:00
1970-01-01 00:00:00
2020-01-02 00:00:00
1
Chicken Sandwich
12.99
2020-01-02 00:00:00
2020-01-02 00:00:00
2020-01-03 00:00:00
1
Chicken Sandwich
14.99
2020-01-03 00:00:00
2020-01-03 00:00:00
NULL
2
Cheeseburger
8.99
2020-01-01 00:00:00
1970-01-01 00:00:00
2020-01-02 11:00:00
2
Cheeseburger
8.99
2020-01-03 00:00:00
2020-01-03 00:00:00
NULL
3
French Fries
4.99
2020-01-01 00:00:00
1970-01-01 00:00:00
NULL
4
Milkshake
3.99
2020-01-02 00:00:00
2020-01-02 00:00:00
2020-01-03 00:00:00
4
Chocolate Milkshake
3.99
2020-01-03 00:00:00
2020-01-03 00:00:00
NULL
Notice: Cheeseburger was deleted from 2020-01-02 11:00:00 to 2020-01-03 00:00:00. Query the table for that time range, and you won't see it; that's accurate, since it wasn't on the menu during that period.
This is the most accurate representation based on your source data. If Cheeseburger had been added back with its original updated_at timestamp (2020-01-01), Vulcan would set the new record's valid_from to 2020-01-02 11:00:00 (when it was detected again), filling the gap. The timestamp didn't change, so the item was likely removed in error, and the gap reflects that.
Example of SCD Type 2 by column in action
How By Column works. Same restaurant menu example, but the source table doesn't have an updated_at column. Configure the model to watch Name and Price for changes.
Starting data:
1
Chicken Sandwich
10.99
2
Cheeseburger
8.99
3
French Fries
4.99
After the first run, your SCD Type 2 table:
1
Chicken Sandwich
10.99
1970-01-01 00:00:00
NULL
2
Cheeseburger
8.99
1970-01-01 00:00:00
NULL
3
French Fries
4.99
1970-01-01 00:00:00
NULL
Now update the source table:
1
Chicken Sandwich
12.99
3
French Fries
4.99
4
Milkshake
3.99
Summary of changes:
The Chicken Sandwich price increased from $10.99 to $12.99.
Cheeseburger was removed from the menu.
Milkshakes were added to the menu.
Assuming your models ran at 2020-01-02 11:00:00, the target table is updated with this data:
1
Chicken Sandwich
10.99
1970-01-01 00:00:00
2020-01-02 11:00:00
1
Chicken Sandwich
12.99
2020-01-02 11:00:00
NULL
2
Cheeseburger
8.99
1970-01-01 00:00:00
2020-01-02 11:00:00
3
French Fries
4.99
1970-01-01 00:00:00
NULL
4
Milkshake
3.99
2020-01-02 11:00:00
NULL
A final pass: update the source table:
1
Chicken Sandwich
14.99
2
Cheeseburger
8.99
3
French Fries
4.99
4
Chocolate Milkshake
3.99
Summary of changes:
The Chicken Sandwich price increased from $12.99 to $14.99.
Cheeseburger was added back to the menu with its original name and price.
Milkshake name was updated to "Chocolate Milkshake".
After running at 2020-01-03 11:00:00, the final SCD Type 2 table:
1
Chicken Sandwich
10.99
1970-01-01 00:00:00
2020-01-02 11:00:00
1
Chicken Sandwich
12.99
2020-01-02 11:00:00
2020-01-03 11:00:00
1
Chicken Sandwich
14.99
2020-01-03 11:00:00
NULL
2
Cheeseburger
8.99
1970-01-01 00:00:00
2020-01-02 11:00:00
2
Cheeseburger
8.99
2020-01-03 11:00:00
NULL
3
French Fries
4.99
1970-01-01 00:00:00
NULL
4
Milkshake
3.99
2020-01-02 11:00:00
2020-01-03 11:00:00
4
Chocolate Milkshake
3.99
2020-01-03 11:00:00
NULL
Notice: Cheeseburger was deleted from 2020-01-02 11:00:00 to 2020-01-03 11:00:00. Query the table for that time range, and you won't see it; that's accurate, since it wasn't on the menu during that period.
Shared configuration options
unique_key
Unique key used for identifying rows between source and target
List of strings or string
valid_from_name
The name of the valid_from column to create in the target table. Default: valid_from
string
valid_to_name
The name of the valid_to column to create in the target table. Default: valid_to
string
invalidate_hard_deletes
If set to true, when a record is missing from the source table it will be marked as invalid. Default: false
bool
batch_size
The maximum number of intervals that can be evaluated in a single backfill task. If this is None, all intervals will be processed as part of a single task. See Processing Source Table with Historical Data for more info on this use case. (Default: None)
int
SCD Type 2 by time configuration options
updated_at_name
The name of the column containing a timestamp to check for new or updated records. Default: updated_at
string
updated_at_as_valid_from
By default, for new rows valid_from is set to 1970-01-01 00:00:00. This changes the behavior to set it to the value of updated_at when the row is inserted. Default: false
bool
SCD Type 2 by column configuration options
columns
The names of the columns to check for changes. * to represent that all columns should be checked.
List of strings or string
execution_time_as_valid_from
By default, when the model is first loaded valid_from is set to 1970-01-01 00:00:00 and future new rows will have execution_time of when the models ran. This changes the behavior to always use execution_time. Default: false
bool
updated_at_name
If sourcing from a table that includes a timestamp to use as valid_from, set this property to that column. See Processing Source Table with Historical Data for more info on this use case. (Default: None)
string
Processing source table with historical data
Most of the time, you're creating history for a table that doesn't have it. The restaurant menu shows what's available now; you want to track what was available over time. For this use case, leave batch_size as None (the default).
What if your source already has history? Some systems create "daily snapshot" tables that contain historical records. When sourcing from one of these, set batch_size to 1 to process each interval sequentially (one day at a time if you're using @daily cron).
Why sequential? SCD Type 2 compares each day's snapshot to the previous day to detect changes. Processing them in order captures the history correctly.
Example: source from daily snapshot table
This processes each day sequentially, checking whether some_value changed. When a change is detected, valid_from is set to match the ds column value (except for the very first record, which gets 1970-01-01 00:00:00).
If the source data was:
1
1
2025-01-01
1
2
2025-01-02
1
3
2025-01-03
1
3
2025-01-04
The resulting SCD Type 2 table:
1
1
2025-01-01
1970-01-01 00:00:00
2025-01-02 00:00:00
1
2
2025-01-02
2025-01-02 00:00:00
2025-01-03 00:00:00
1
3
2025-01-03
2025-01-03 00:00:00
NULL
Querying SCD Type 2 models
Even though SCD Type 2 models track history, querying the current version is simple. Common patterns:
Querying the current version
For just the latest version of each record, filter for valid_to IS NULL:
Create a view that adds an is_current flag for downstream consumers:
Querying for a specific point in time
To see what the menu looked like on a specific date, filter by valid_from and valid_to:
Use it in a join to get the menu item price that was valid when an order was placed:
Create a view that handles the COALESCE automatically for easier point-in-time queries:
To make valid_to inclusive so users can use BETWEEN, adjust it:
Querying for deleted records
To find deleted records, query for IDs that don't have a current version (valid_to IS NULL):
Reset SCD Type 2 model (clearing history)
By default, SCD Type 2 models protect your history: once it's gone, you can't recreate it. Sometimes you need to start fresh (for example, to fix a bug or recover from corrupted history).
Warning: this deletes all historical data. Make sure you want to do this.
To reset history:
Plan/apply this change to production. Then restate the model.
Once complete, remove
disable_restatementfrom your model definition (sets it back totrue) to prevent accidental data loss.
Plan and apply this change to production.
EXTERNAL
The EXTERNAL model kind specifies external models that store metadata about external tables. External models are special: you don't define them in .sql files like other model kinds. They're optional but useful for propagating column and type information for external tables queried in your Vulcan project.
MANAGED
MANAGED models hand refresh scheduling to Snowflake instead of Vulcan. Vulcan creates the Dynamic Table on vulcan plan or vulcan run. Snowflake then refreshes it on the cadence set with target_lag. No Vulcan orchestration runs between refreshes.
Snowflake tracks changes in upstream tables. It incrementally refreshes affected rows, similar to a materialized view. Dynamic Tables schedule their own refreshes rather than refreshing on query or a Vulcan cron.
When to use MANAGED:
A derived table needs to stay current without a scheduled
vulcan run.The upstream tables change frequently enough that a fixed cron either lags behind or runs more often than needed.
You want Snowflake to manage refresh timing and incremental computation instead of hand-rolling it with
INCREMENTAL_BY_TIME_RANGEorINCREMENTAL_BY_UNIQUE_KEY.
When NOT to use MANAGED:
The project targets any engine other than Snowflake, or needs to stay portable across engines.
You need precise control over exactly when a refresh happens (Dynamic Tables refresh on
target_lag, not on demand).
Configure a managed model
Set kind MANAGED and a physical_properties block. Both target_lag and warehouse are required.
The query is a plain, portable SELECT. It matches a FULL model's query. Only kind MANAGED and physical_properties create a Dynamic Table.
target_lagsets the maximum staleness Snowflake allows before it triggers a refresh (for example,'5 minutes','1 hour', orDOWNSTREAMto inherit lag from a consuming Dynamic Table).warehousesets which Snowflake warehouse performs the refresh. It's billed separately from the warehouse Vulcan itself connects with.
Verify refreshes
Snowflake owns the schedule. Check the Dynamic Table's state in Snowflake, not Vulcan's run history.
SEMANTIC
Wraps a Vulcan model with business-friendly dimensions, measures, segments, and joins. Defined in standalone YAML files under models/semantics/ (one model per file).
See Semantic Models for the full reference.
METRIC
Time-series analytical definition. Pairs a measure from a semantic model with a time column and a default granularity, plus optional grouping dimensions and pre-built segments. Defined in standalone YAML files under models/metrics/ (one metric per file).
See Business Metrics for the full reference.
DQ
Non-blocking data-quality pack: column profiles and validation checks (expectations:) attached to a single Vulcan model. Unlike assertions (which block model execution on failure), DQ checks don't stop the run; their results feed into the Activity API for trend monitoring. Defined in standalone YAML files under dq/ (one pack per file).
Column profiling lives here, under a profiles: list, not as a profiles property inside a MODEL(...) block, which is deprecated.
See Data Quality for the full reference.
Last updated
Was this helpful?