Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config for semantic models #4221

Merged
merged 9 commits into from
Nov 16, 2023
31 changes: 31 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,36 @@ 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
group: <string>
meta: {dictionary}
```

</File>

</VersionBlock>

</TabItem>

</Tabs>

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