Skip to content

Commit

Permalink
group 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 2e28ca0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions website/docs/reference/resource-configs/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This functionality is new in v1.5.
{ label: 'Tests', value: 'tests', },
{ label: 'Analyses', value: 'analyses', },
{ label: 'Metrics', value: 'metrics', },
{ label: 'Semantic models', value: 'semantic_models', },
]
}>
<TabItem value="models">
Expand Down Expand Up @@ -265,6 +266,44 @@ metrics:

</TabItem>


<TabItem value="semantic_models">

<VersionBlock lastVersion="1.6">

Support for grouping semantic models was added in dbt Core v1.7

</VersionBlock>

<VersionBlock firstVersion="1.7">

<File name='dbt_project.yml'>

```yaml
semantic_models:
[<resource-path>](resource-path):
[+](plus-prefix)group: finance
```
</File>
<File name='models/semantic_models.yml'>
```yaml
version: 2

semantic_models:
- name: [<semantic_model_name>]
group: finance

```

</File>

</VersionBlock>

</TabItem>

</Tabs>

## Definition
Expand Down

0 comments on commit 2e28ca0

Please sign in to comment.