Model defaults
Configure model_defaults in config.yaml: the required dialect, owner enforcement against config.users, identifier normalization strategy, and how they pair with the default gateway.
The model_defaults section is required. You must specify a value for the dialect key.
All supported model_defaults keys are listed in the configuration reference.
Basic configuration
Example:
users:
- username: jen
email: jen@example.com
type: OWNER
model_defaults:
dialect: snowflake
owner: jen
start: 2022-01-01The default model kind is VIEW unless you override it with the kind key. See model kinds for more information.
Owner enforcement
The owner field in model_defaults is subject to the following rules at config load time:
Default value. If
model_defaults.owneris not set, it defaults to theusernameof the first entry inconfig.users.Must be a listed user. Whether set explicitly or defaulted, the resolved owner must be a
usernamepresent inconfig.users. If it references an unknown username, config load fails.Per-model validation. Each model's individual
ownerfield is also validated againstconfig.usersat load time. A model that names an owner not listed inconfig.usersis rejected with a load error.
Example showing all three levels: project users, a default owner, and a per-model owner override:
Identifier resolution
When a SQL engine receives a query like SELECT id FROM "some_table", it needs to understand what database objects the identifiers id and "some_table" correspond to. This is identifier resolution.
Different SQL dialects resolve identifiers differently. Some identifiers are case-sensitive if quoted. Case-insensitive identifiers are usually lowercased or uppercased before the engine looks up the object.
Vulcan analyzes model queries to extract information such as column-level lineage. To do this, it normalizes and quotes all identifiers in queries, respecting each dialect's resolution rules.
The normalization strategy determines whether case-insensitive identifiers are lowercased or uppercased. You can configure this per dialect. To treat all identifiers as case-sensitive in a Databricks project:
Use this when you need to preserve name casing. Vulcan does not normalize identifiers.
See normalization strategies for all supported options.
Model defaults with a gateway
Set model_defaults at the top level of config.yaml, next to your gateway definition:
In the example above, default_gateway (line 6) tells Vulcan to connect through the snowflake gateway when you don't pass --gateway. The top-level model_defaults apply to every model in the project, so models are written in the snowflake dialect (line 9).
Last updated
Was this helpful?