Skip to content

Commit

Permalink
Merge branch 'current' into dbt-init-profile
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewshaver authored Oct 10, 2023
2 parents ef2a18b + bdbfa4b commit ae9d583
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions website/docs/docs/build/semantic-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,29 @@ semantic_models:
type: categorical
```
<VersionBlock firstVersion="1.7">
Semantic models support configs in either the schema file or at the project level.
Semantic model config in `models/semantic.yml`:
```yml
semantic_models:
- name: orders
config:
enabled: true | false
group: some_group
```

Semantic model config in `dbt_project.yml`:
```yml
semantic_models:
my_project_name:
+enabled: true | false
+group: some_group
```

</VersionBlock>

### Name

Define the name of the semantic model. You must define a unique name for the semantic model. The semantic graph will use this name to identify the model, and you can update it at any time. Avoid using double underscores (__) in the name as they're not supported.
Expand Down

0 comments on commit ae9d583

Please sign in to comment.