-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'current' into sl-access-url-st-docs-update
Showing
14 changed files
with
190 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,83 @@ | ||
:::danger | ||
--- | ||
resource_types: [models] | ||
description: "Materialized - Read this in-depth guide to learn about materializations in dbt." | ||
datatype: "string" | ||
--- | ||
|
||
These docs are a placeholder for a yet-to-be-written reference section. | ||
<Tabs | ||
groupId="config-languages" | ||
defaultValue="project-yaml" | ||
values={[ | ||
{ label: 'Project file', value: 'project-yaml', }, | ||
{ label: 'Property file', value: 'property-yaml', }, | ||
{ label: 'Config block', value: 'config', }, | ||
] | ||
}> | ||
|
||
Please refer to the [guide on materializations](/docs/build/materializations) for current documentation. | ||
|
||
::: | ||
<TabItem value="project-yaml"> | ||
|
||
<File name='dbt_project.yml'> | ||
|
||
```yaml | ||
[config-version](/reference/project-configs/config-version): 2 | ||
|
||
models: | ||
[<resource-path>](/reference/resource-configs/resource-path): | ||
+materialized: [<materialization_name>](https://docs.getdbt.com/docs/build/materializations#materializations) | ||
``` | ||
</File> | ||
</TabItem> | ||
<TabItem value="property-yaml"> | ||
<File name='models/properties.yml'> | ||
```yaml | ||
version: 2 | ||
|
||
models: | ||
- name: <model_name> | ||
config: | ||
materialized: [<materialization_name>](https://docs.getdbt.com/docs/build/materializations#materializations) | ||
|
||
``` | ||
|
||
</File> | ||
|
||
</TabItem> | ||
|
||
|
||
<TabItem value="config"> | ||
|
||
<File name='models/<model_name>.sql'> | ||
|
||
```jinja | ||
{{ config( | ||
materialized="[<materialization_name>](https://docs.getdbt.com/docs/build/materializations#materializations)" | ||
) }} | ||
select ... | ||
``` | ||
|
||
</File> | ||
|
||
</TabItem> | ||
|
||
</Tabs> | ||
|
||
## Definition | ||
|
||
[Materializations](/docs/build/materializations#materializations) are strategies for persisting dbt models in a warehouse. These are the materialization types built into dbt: | ||
|
||
- `ephemeral` — [ephemeral](/docs/build/materializations#ephemeral) models are not directly built into the database | ||
- `table` — a model is rebuilt as a [table](/docs/build/materializations#table) on each run | ||
- `view` — a model is rebuilt as a [view](/docs/build/materializations#view) on each run | ||
- `materialized_view` — allows the creation and maintenance of [materialized views](/docs/build/materializations#materialized-view) in the target database | ||
- `incremental` — [incremental](/docs/build/materializations#incremental) models allow dbt to insert or update records into a table since the last time that model was run | ||
|
||
You can also configure [custom materializations](/guides/create-new-materializations?step=1) in dbt. Custom materializations are a powerful way to extend dbt's functionality to meet your specific needs. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters