Properties
General, storage, engine, and behavior properties for the `MODEL` block, plus kind-specific incremental properties and model naming.
The MODEL DDL statement has properties that control how your model behaves. Configure scheduling, storage, validation, and more.
This page is a complete reference for all available properties: what each one does, when to use it, and examples.
Quick reference
name
Fully qualified model name: schema.model or catalog.schema.model (catalog required when targeting a non-default database)
str
Y
project
Project name for multi-repo deployments
str
N
kind
Model kind (VIEW, FULL, INCREMENTAL, etc.)
str | dict
N
cron
Schedule expression for model refresh
str
N
cron_tz
Timezone for the cron schedule
str
N
interval_unit
Temporal granularity of data intervals
str
N
start
Earliest date/time to process
str | int
N
end
Latest date/time to process
str | int
N
grains
Column(s) defining row uniqueness
str | tuple
N
grains
Multiple unique key definitions
tuple
N
owner
Model owner for governance
str
N
description
Model description (registered as table comment)
str
N
tags
Labels for organizing and categorizing models
tuple[str]
N
terms
Business glossary terms for semantic linking
tuple[str]
N
column_descriptions
Column-level comments
dict
N
column_tags
Column-level tags for categorization
dict
N
column_terms
Column-level business glossary terms
dict
N
column_mask_expressions
SQL substitutions for columns masked by policies
dict
N
column_classifications
Governance/catalog sensitivity labels per column
dict
N
columns
Explicit column names and types
array
N
dialect
SQL dialect of the model
str
N
assertions
Named audits to run after model evaluation (attaching them to this model)
array
N
depends_on
Explicit model dependencies
array[str]
N
references
Non-unique join relationship columns
array
N
partitioned_by
Partition key column(s)
str | array
N
clustered_by
Clustering column(s)
array
N
table_format
Table format (iceberg, hive, delta)
str
N
storage_format
Storage format (parquet, orc)
str
N
physical_properties
Engine-specific table/view properties
dict
N
virtual_properties
Engine-specific view layer properties
dict
N
session_properties
Engine session properties
dict
N
stamp
Arbitrary version string
str
N
| enabled | Whether model is enabled | bool | N |
| allow_partials | Allow partial data intervals | bool | N | | gateway | Specific gateway for execution | str | N |
| optimize_query | Enable query optimization | bool | N | | formatting | Enable model formatting | bool | N |
| ignored_rules | Linter rules to ignore | str | array | N |
Note: required unless you enable name inference.
General properties
Properties that apply to every model, regardless of kind.
name
Your model's name is how it's identified in the data warehouse. It needs at least a schema (schema.model), and you can include a catalog (catalog.schema.model) when targeting a specific database.
Format: schema.model or catalog.schema.model.
This becomes the production table/view name that other models and users reference.
project
For multiple Vulcan projects in the same repository (multi-repo setup), use project to specify which project this model belongs to. This helps Vulcan organize and isolate models from different projects.
kind
The kind property determines how your model is computed and stored. Rebuild everything each run, update incrementally, or create a view: decide here.
For details on each kind and when to use them, see the Model Kinds documentation.
cron
Controls when your model runs. Use standard cron expressions or Vulcan's shortcuts for common schedules.
Why this matters: without a schedule, your model only runs when you manually trigger it. Set a cron, and Vulcan processes new data on schedule.
Cron shortcuts: Vulcan provides shortcuts:
@hourly: every hour.@daily: every day at midnight UTC.@weekly: once per week.@monthly: once per month.
These are easier than writing 0 * * * *.
cron_tz
Sets the timezone for your cron schedule. This only affects when the model runs, not how time intervals are calculated (those are always UTC).
Example: with cron '@daily' and cron_tz 'America/Los_Angeles', your model runs at midnight Pacific time, but the time intervals it processes are still in UTC.
interval_unit
Controls the granularity of time intervals for incremental models. Vulcan infers this from your cron expression by default; override it if needed.
Supported values: year, month, day, hour, half_hour, quarter_hour, five_minute.
When to override: when your cron runs daily but you want to process hourly intervals, set interval_unit 'hour'. Use this for finer-grained control over incremental processing.
start
Sets the earliest date/time your model should process. Use it to limit backfills or define when your model's data begins.
Formats:
Absolute dates:
'2024-01-01'.Relative expressions:
'1 year ago'.Epoch milliseconds:
1704067200000.
end
Sets the latest date/time your model should process. Uses the same format as start. Use it for historical models or to limit processing to a specific time range.
grain / grains
In Vulcan, this acts as the primary key. It identifies a single row in your table and defines the column(s) that make each row unique.
Why this matters: tools like table_diff use grains to compare tables. They also help Vulcan understand your data structure for better optimization and validation.
Specify a single grain or multiple grains using tuple syntax with parentheses.
owner
Sets the owner of the model, usually a team name or individual. Used for governance, notifications, and knowing who to contact when something breaks.
Example: owner 'analytics_team' or owner 'data_engineers'.
description
A human-readable description of what your model does. Vulcan registers this as a table comment in your SQL engine (where supported), so it shows up in BI tools and data catalogs.
Tip: write descriptions that explain the business purpose, not just the technical details.
column_descriptions
Document your columns. Add descriptions for each column; Vulcan registers them as column comments in your database.
Why document columns? When someone queries your table in a BI tool, they see what each column means. It's inline documentation that travels with your data.
column_tags
Assign tags to individual columns for categorization, governance, and discovery. Column tags classify columns by role, sensitivity, or purpose.
Common column tag categories:
Role tags:
primary_key,identifier,grain,dimension,measure.Sensitivity tags:
pii,confidential,contact.Domain tags:
financial,metric,score,label.
column_terms
Link individual columns to business glossary terms. Column terms connect technical column names to business vocabulary for better discovery and semantic understanding.
Format: use dot notation for hierarchical terms like domain.concept (for example, customer.customer_id, analytics.rfm_score).
column_mask_expressions
Define the SQL replacement expression for columns that can be masked by a policy. Policies decide which groups and which columns are masked; column_mask_expressions decides what those columns return when masked.
Expressions must use bare column names, not semantic {model.column} references. If a policy rule lists a column under mask, the physical model must define a matching column_mask_expressions entry.
column_classifications
Assign governance or catalog sensitivity labels to columns. This metadata is distinct from runtime masking and does not change query results.
columns
Explicitly defines your model's column names and data types. With this, Vulcan doesn't infer types from your query; it uses exactly what you specify.
When to use:
Python models (required; Vulcan can't infer types from Python code).
Seed models (define the CSV schema).
When you want strict type control.
Required for Python models. Vulcan can't infer column types from Python code; define your schema explicitly.
dialect
Specifies the SQL dialect your model uses. Defaults to whatever you set in model_defaults.
tags
Labels for organizing, filtering, and categorizing models. Tags group related models for filtering in CLI commands and organizing your project.
Common tag categories:
Layer tags:
gold,silver,bronzefor data lake layers.Domain tags:
analytics,customer,sales,finance.Purpose tags:
reporting,segmentation,aggregation.Sensitivity tags:
pii,confidential,public.
terms
Business glossary terms link your model to semantic definitions. Terms bridge technical model names and business vocabulary, making models easier to discover and understand.
Format: use dot notation for hierarchical terms like domain.concept (for example, customer.rfm_analysis, analytics.customer_segmentation).
assertions
Attach assertions directly to your model. These validations run after each model evaluation and block models if they fail.
Why use assertions? They catch bad data before it flows downstream. If revenue can't be negative, assert it. If customer IDs must be unique, assert it. Fail fast, fix fast.
Assertions are "this data must be true" validations that run automatically.
depends_on
Explicitly declare model dependencies. Vulcan infers dependencies from SQL queries, but sometimes you need to add extra ones.
When to use:
Python models (required; Vulcan can't parse Python to find dependencies).
Hidden dependencies (like a macro that references another model).
External dependencies that aren't in your SQL.
Note: Vulcan adds the dependencies you declare here to the ones it infers; they don't replace them.
references
Declare non-unique join relationships to other models. These help Vulcan understand how models relate to each other for better lineage and optimization.
Example: if your orders table has a customer_id that joins to customers.customer_id, add customer_id to references. This tells Vulcan about the relationship even though customer_id isn't unique in the orders table.
Storage properties
These properties control how your data is physically stored in the database. They're engine-specific; check your engine's documentation for what's supported.
partitioned_by
Defines the partition key for your table. Partitioning splits your table into chunks based on column values, which makes queries faster (the engine can skip irrelevant partitions).
Supported engines: Spark, Databricks, and others that support table partitioning.
Why partition? If you query the last 7 days and your table is partitioned by date, the engine scans 7 partitions instead of the entire table.
clustered_by
Sets clustering columns for engines that support it. Clustering organizes data within partitions based on column values, making range queries and filters faster.
How it works: data is physically stored sorted by the clustering columns. When you filter on those columns, the engine skips reading irrelevant data blocks.
Example: cluster by customer_id, and queries filtering by customer run faster because related data is stored together.
table_format
Specifies the table format for engines that support multiple formats. Different formats have different features and performance characteristics.
Supported formats: iceberg, hive, delta.
When to use: choose based on your needs:
Iceberg: time travel and schema evolution.
Delta: ACID transactions and time travel.
Hive: traditional format, widely supported.
storage_format
Sets the physical file format for your table's data files. This affects compression, query performance, and storage costs.
Common formats: parquet, orc.
Parquet is usually the best choice: columnar (good for analytics), good compression, and widely supported. ORC is another option, especially with Hive.
Engine properties
These properties pass engine-specific settings to Vulcan. Each engine has different capabilities, so these properties vary by engine.
physical_properties
Pass engine-specific properties directly to the physical table/view creation. Set things like retention policies, labels, or other engine-specific features.
Use cases:
Set table retention.
Add labels or tags (Snowflake).
Configure table type (Snowflake:
TRANSIENTtables).Any other engine-specific table settings.
virtual_properties
Pass engine-specific properties to the virtual layer view. Use this for view-level security, labels, or other view-specific settings.
Use cases:
Create secure views (Snowflake:
SECUREviews).Add labels to views.
Set view-level permissions.
Configure view-specific engine features.
session_properties
Set session-level properties that apply when Vulcan executes your model. These affect how queries run but don't change the table structure.
Use cases:
Set query timeouts.
Configure parallelism.
Adjust memory limits.
Set engine-specific session variables.
Example: for a large query that needs more time, set query_timeout: 3600 to give it an hour instead of the default.
gateway
Specifies which gateway to use for executing this model. Useful when you have multiple database connections and want to route specific models to specific databases.
When to use: multi-warehouse setups, isolated environments, or when certain models need to run on a different database than the default.
Behavior properties
These properties control how Vulcan behaves when processing your model.
stamp
Force a new model version without changing the definition. Use it as a version tag for tracking deployments or forcing a refresh.
When to use: when you want a new version for tracking, or to force downstream models to rebuild even though this model's definition hasn't changed.
enabled
Control whether the model is active. Set to false to disable a model without deleting it.
When to use:
Temporarily disable a model while debugging.
Deprecate a model but keep it for reference.
Skip models during development.
Default: true (models are enabled by default).
allow_partials
Allow processing of incomplete data intervals. By default, Vulcan waits for complete intervals before processing (keeps data quality high). Set this to true to process partial intervals.
When to use:
Real-time or near-real-time models.
When you need data ASAP, even if it's incomplete.
Streaming data scenarios.
Trade-off: you lose the ability to distinguish between "missing data" (model issue) and "partial interval" (expected). Use with caution.
Default: false (wait for complete intervals).
optimize_query
Turn query optimization on or off. Vulcan optimizes queries by default (rewrites them for better performance); sometimes you want to disable this.
When to disable:
The optimizer breaks your query.
You have engine-specific optimizations to preserve.
Debugging query issues.
Default: true (optimize queries).
formatting
Control whether Vulcan formats this model when you run vulcan format. Set to false to preserve custom formatting.
When to disable:
Legacy models with specific formatting requirements.
Models where formatting breaks something.
When you prefer manual formatting control.
Default: true (format models automatically).
ignored_rules
Tell Vulcan's linter to ignore specific rules for this model. Useful when you have a legitimate reason to break a rule, or when a rule doesn't apply.
Ignore specific rules (['rule_name', 'another_rule']) or all rules ('ALL').
Use sparingly: if you're ignoring lots of rules, the rules may need updating or the model may need refactoring.
Incremental model properties
These properties go inside the kind definition for incremental models. They control how incremental models behave: schema changes, restatements, and batch processing.
For the full picture on incremental models, see the Model Kinds documentation.
Common incremental properties
These properties work with every incremental model kind. They control how Vulcan picks intervals, handles schema changes, and writes results:
forward_only
All changes should be forward-only
bool
false
on_destructive_change
Behavior for destructive schema changes
str
error
on_additive_change
Behavior for additive schema changes
str
allow
disable_restatement
Disable data restatement
bool
false
auto_restatement_cron
Cron expression for automatic restatement
str
-
Values for on_destructive_change / on_additive_change:
allow: let the change happen (default for additive).warn: allow but warn about it.error: block the change (default for destructive).ignore: pretend it didn't happen.
Why this matters: schema changes can break downstream models. These settings control how strict Vulcan is when your schema evolves.
INCREMENTAL_BY_TIME_RANGE
Properties for models that update incrementally based on a time column. These control how time-based incremental processing works.
For the full guide on INCREMENTAL_BY_TIME_RANGE models, see the Model Kinds documentation.
time_column
Column containing each row's timestamp (should be UTC)
str
Y
format
Format of the time column's data
str
N
batch_size
Maximum intervals per backfill task
int
N
batch_concurrency
Maximum concurrent batches
int
N
lookback
Prior intervals to include for late-arriving data
int
N
auto_restatement_intervals
Number of last intervals to auto-restate
int
N
INCREMENTAL_BY_UNIQUE_KEY
Properties for models that update based on unique keys (upsert operations). These control MERGE behavior and key handling.
For details on INCREMENTAL_BY_UNIQUE_KEY models, see the Model Kinds documentation.
unique_key
Column(s) containing each row's unique key
str | array
Y
when_matched
SQL logic to update columns on match (MERGE engines only)
str
N
merge_filter
Predicates for ON clause of MERGE operation
str
N
batch_size
Maximum intervals per backfill task
int
N
lookback
Prior intervals to include for late-arriving data
int
N
INCREMENTAL_BY_PARTITION
Properties for models that update by partition. This kind uses the partitioned_by property (from the general properties section) as its partition key.
Note: there are no additional kind-specific properties; use partitioned_by to define your partition columns.
For details on INCREMENTAL_BY_PARTITION models, see the Model Kinds documentation.
SCD_TYPE_2
Properties for Slowly Changing Dimension Type 2 models, which track historical changes to your data.
For the complete guide on SCD Type 2 models, see the Model Kinds.
Common SCD Type 2 properties
unique_key
Column(s) containing each row's unique key
array
Y
valid_from_name
Column for valid from date
str
N (default: valid_from)
valid_to_name
Column for valid to date
str
N (default: valid_to)
invalidate_hard_deletes
Mark missing records as invalid
bool
N (default: true)
SCD_TYPE_2_BY_TIME
Properties for SCD Type 2 models that detect changes using an updated_at timestamp column. This is the recommended approach when your source table has update timestamps.
updated_at_name
Column containing updated at date
str
N (default: updated_at)
updated_at_as_valid_from
Use updated_at value as valid_from for new rows
bool
N (default: false)
SCD_TYPE_2_BY_COLUMN
Properties for SCD Type 2 models that detect changes by comparing column values. Use this when your source table doesn't have an updated_at column.
columns
Columns to check for changes (* for all)
str | array
Y
execution_time_as_valid_from
Use execution time as valid_from for new rows
bool
N (default: false)
Model naming
By default, you specify the name property in every model. If you organize your models in a directory structure that matches your schema names, you can turn on automatic name inference.
How it works: with infer_names: true, a model at models/sales/daily_sales.sql automatically gets the name sales.daily_sales. The directory structure becomes your schema, and the filename becomes your model name.
Turn it on in your config:
When to use: when your project structure matches your schema structure, this saves you from typing name in every model.
Learn more in the configuration guide.
Last updated
Was this helpful?