Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
0a8b4bf
clarify macro aren't support in project.yml file
mirnawong1 Aug 30, 2023
907fde4
Merge branch 'current' into mwong-macro-yml
mirnawong1 Aug 31, 2023
cda991a
add snippet and rephrase
mirnawong1 Aug 31, 2023
66ff1df
Update dbt_project.yml.md
mirnawong1 Aug 31, 2023
293e437
Merge branch 'current' into mwong-macro-yml
mirnawong1 Aug 31, 2023
b163c5b
Update website/docs/reference/macro-properties.md
mirnawong1 Aug 31, 2023
ddd2c63
Update website/docs/reference/macro-properties.md
mirnawong1 Aug 31, 2023
237f6da
Merge branch 'mwong-macro-yml' of https://github.com/dbt-labs/docs.ge…
mirnawong1 Aug 31, 2023
6d8ce4e
update lang
mirnawong1 Aug 31, 2023
0b5a949
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 4, 2023
49d7b63
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 6, 2023
9a9627a
tweak snippet and add versionblock
mirnawong1 Sep 6, 2023
a56d9a8
remove break
mirnawong1 Sep 6, 2023
db04b02
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 7, 2023
3d8dbd6
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 11, 2023
d22b7e9
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 11, 2023
a24c149
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 11, 2023
b01215a
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 13, 2023
d5c881f
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 13, 2023
a453e7a
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 13, 2023
f4ccb57
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 14, 2023
30c7c4d
Merge branch 'current' into mwong-macro-yml
mirnawong1 Sep 18, 2023
02fb137
adding jerco's great feedback
mirnawong1 Sep 18, 2023
1872ce1
clarify
mirnawong1 Sep 18, 2023
56fbe0a
change yaml to `properties.yml`
mirnawong1 Sep 18, 2023
75b1457
Merge branch 'current' into mwong-macro-yml
mirnawong1 Nov 6, 2023
b5e6f28
Merge branch 'current' into mwong-macro-yml
mirnawong1 Nov 7, 2023
5ec1c05
add table
mirnawong1 Nov 7, 2023
95b430d
Merge branch 'current' into mwong-macro-yml
mirnawong1 Nov 8, 2023
ef8c3bc
Update configs-and-properties.md
mirnawong1 Nov 8, 2023
06740f1
Merge branch 'current' into mwong-macro-yml
mirnawong1 Nov 9, 2023
02a3cae
Remove trailing space
dbeatty10 Nov 10, 2023
fa206ce
Merge branch 'current' into mwong-macro-yml
dbeatty10 Nov 10, 2023
f353599
Merge branch 'current' into mwong-macro-yml
dbeatty10 Nov 10, 2023
29c32df
Merge branch 'current' into mwong-macro-yml
mirnawong1 Nov 13, 2023
6c4a0c6
Merge branch 'current' into mwong-macro-yml
dbeatty10 Nov 13, 2023
5baf269
Merge branch 'current' into mwong-macro-yml
mirnawong1 Nov 15, 2023
ca47c06
Merge branch 'current' into mwong-macro-yml
mirnawong1 Nov 20, 2023
e332c34
Merge branch 'current' into mwong-macro-yml
mirnawong1 Nov 22, 2023
a1a8e7f
Update docs.md
mirnawong1 Nov 22, 2023
169f759
Merge branch 'current' into mwong-macro-yml
mirnawong1 Nov 29, 2023
e27bb9d
Merge branch 'current' into mwong-macro-yml
dbeatty10 Dec 17, 2023
7ad36fd
Update dbt_project.yml.md
dbeatty10 Dec 17, 2023
c26bc39
Remove extra newline
dbeatty10 Dec 17, 2023
9225af1
Merge branch 'current' into mwong-macro-yml
mirnawong1 Dec 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'current' into mwong-macro-yml
  • Loading branch information
mirnawong1 authored Nov 6, 2023
commit 75b1457f8c63f86ddef44cc8f246f5369c46185d
18 changes: 2 additions & 16 deletions website/docs/docs/build/semantic-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ tags: [Metrics, Semantic Layer]
pagination_next: "docs/build/dimensions"
---

import PropsCallout from '/snippets/_config-prop-callout.md';

Semantic models serve as the foundation for defining data in MetricFlow, which powers the dbt Semantic Layer. You can think of semantic models as nodes in your semantic graph, connected via entities as edges. MetricFlow takes semantic models defined in YAML configuration files as inputs and creates a semantic graph that can be used to query metrics.
Semantic models are the foundation for data definition in MetricFlow, which powers the dbt Semantic Layer:

- Think of semantic models as nodes connected by entities in a semantic graph.
- MetricFlow uses YAML configuration files to create this graph for querying metrics.
Expand All @@ -20,19 +18,7 @@ Semantic models serve as the foundation for defining data in MetricFlow, which p
- Configure semantic models in a YAML file within your dbt project directory.
- Organize them under a `metrics:` folder or within project sources as needed.

<VersionBlock firstVersion="1.7">

You can configure semantic models in your dbt project directory in a [`properties.yml` file](/reference/configs-and-properties#where-can-i-define-properties). Depending on your project structure, you can nest semantic models under a `metrics:` folder or organize them under project sources.

</VersionBlock>

<VersionBlock lastVersion="1.6">

You can configure semantic models in your dbt project directory in a [`properties.yml` file](/reference/configs-and-properties#where-can-i-define-properties), however, you cannot actually define their properties within the `dbt_project.yml` file. <PropsCallout title={frontMatter.title}/>

Depending on your project structure, you can nest semantic models under a `metrics:` folder or organize them under project sources.

</VersionBlock>
<Lightbox src="/img/docs/dbt-cloud/semantic-layer/semantic_foundation.jpg" width="70%" title="A semantic model is made up of different components: Entities, Measures, and Dimensions."/>

Semantic models have 6 components and this page explains the definitions with some examples:

Expand Down
77 changes: 77 additions & 0 deletions website/docs/reference/dbt_project.yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,87 @@ Starting from dbt v1.5 and higher, you can specify your dbt Cloud project ID in
dbt uses YAML in a few different places. If you're new to YAML, it would be worth taking the time to learn how arrays, dictionaries, and strings are represented.
:::


Something to note, you can't set up a "property" in the `dbt_project.yml` file if it's not a config (an example is [macros](/reference/macro-properties)). This applies to all types of resources. Refer to [Configs and properties](/reference/configs-and-properties) for more detail.

The following example is a list of all available configurations in the `dbt_project.yml` file:


<VersionBlock firstVersion="1.6">

<File name='dbt_project.yml'>

```yml
[name](/reference/project-configs/name): string

[config-version](/reference/project-configs/config-version): 2
[version](/reference/project-configs/version): version

[profile](/reference/project-configs/profile): profilename

[model-paths](/reference/project-configs/model-paths): [directorypath]
[seed-paths](/reference/project-configs/seed-paths): [directorypath]
[test-paths](/reference/project-configs/test-paths): [directorypath]
[analysis-paths](/reference/project-configs/analysis-paths): [directorypath]
[macro-paths](/reference/project-configs/macro-paths): [directorypath]
[snapshot-paths](/reference/project-configs/snapshot-paths): [directorypath]
[docs-paths](/reference/project-configs/docs-paths): [directorypath]
[asset-paths](/reference/project-configs/asset-paths): [directorypath]

[target-path](/reference/project-configs/target-path): directorypath
[log-path](/reference/project-configs/log-path): directorypath
[packages-install-path](/reference/project-configs/packages-install-path): directorypath

[clean-targets](/reference/project-configs/clean-targets): [directorypath]

[query-comment](/reference/project-configs/query-comment): string

[require-dbt-version](/reference/project-configs/require-dbt-version): version-range | [version-range]

[dbt-cloud](/docs/cloud/cloud-cli-installation):
[project-id](/docs/cloud/configure-cloud-cli#configure-the-dbt-cloud-cli): project_id # Required
[defer-env-id](/docs/cloud/about-cloud-develop-defer#defer-in-dbt-cloud-cli): environment_id # Optional

[quoting](/reference/project-configs/quoting):
database: true | false
schema: true | false
identifier: true | false

models:
[<model-configs>](/reference/model-configs)

seeds:
[<seed-configs>](/reference/seed-configs)

snapshots:
[<snapshot-configs>](/reference/snapshot-configs)

sources:
[<source-configs>](source-configs)

tests:
[<test-configs>](/reference/test-configs)

vars:
[<variables>](/docs/build/project-variables)

[on-run-start](/reference/project-configs/on-run-start-on-run-end): sql-statement | [sql-statement]
[on-run-end](/reference/project-configs/on-run-start-on-run-end): sql-statement | [sql-statement]

[dispatch](/reference/project-configs/dispatch-config):
- macro_namespace: packagename
search_order: [packagename]

[restrict-access](/docs/collaborate/govern/model-access): true | false

```

</File>
</VersionBlock>

<VersionBlock lastVersion="1.5">


<File name='dbt_project.yml'>

```yml
Expand Down
1 change: 1 addition & 0 deletions website/docs/reference/resource-configs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ models:
- name: model_name
docs:
show: true | false
node_color: "black"
```

</File>
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.