Skip to content

Commit

Permalink
config for semantic models
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 authored Oct 7, 2023
1 parent 0fa8b1b commit d464910
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions website/docs/reference/resource-properties/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ datatype: "{dictionary}"
{ label: 'Sources', value: 'sources', },
{ label: 'Metrics', value: 'metrics', },
{ label: 'Exposures', value: 'exposures', },
{ label: 'Semantic models', value: 'semantic_models', },
]
}>

Expand Down Expand Up @@ -182,6 +183,33 @@ exposures:

</TabItem>

<TabItem value="semantic_models">

<VersionBlock lastVersion="1.6">

Support for the `config` property on `semantic_models` was added in dbt Core v1.7

</VersionBlock>

<VersionBlock firstVersion="1.7">

<File name='models/<filename>.yml'>

```yml
version: 2
semantic_models:
- name: <semantic_model_name>
config:
enabled: true | false
```

</File>

</VersionBlock>

</TabItem>

</Tabs>

The `config` property allows you to configure resources at the same time you're defining properties in YAML files.

0 comments on commit d464910

Please sign in to comment.