Skip to main content
A dbt sync reads metadata from your dbt project and adds it to the matching Omni views. This page lists the metadata a sync can include, what each item becomes in Omni, and what a sync does not read. Omni includes some metadata in every sync, while the rest depends on the connection’s dbt settings.

Default dbt metadata

Every time Omni performs a , the following metadata is included by default: Omni matches dbt column names to dimension names without case sensitivity. Only columns that exist in the warehouse table are updated — documenting a column in dbt does not create a dimension in Omni.

Constraints

If you have native dbt primary_key and foreign_key constraints defined in your dbt project, you can include them in by enabling Auto-generate primary keys and relationships from dbt constraints in the connection’s dbt settings. When this setting is enabled, dbt syncs include the following:
Only native dbt constraints are supported. Constraints defined through a package (e.g., Snowflake-Labs/dbt_constraints) or constraints based on data tests are not supported.

Semantic layer

If you use dbt’s semantic layer, you can include the semantic layer’s metadata in in a few short steps. See Integrating dbt’s semantic layer with Omni for more information. When the semantic layer is enabled, dbt syncs include the following: Metrics with filters will have dimensions created as those filters in Omni. These dimensions are automatically hidden and applied to the corresponding Omni measure for an equivalent calculation.

Next steps