Skip to content

Commit

Permalink
Adding property file config for materializations
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewshaver committed Dec 12, 2024
1 parent bc41a7e commit 80f5b1b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions website/docs/docs/build/materializations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ You can also configure [custom materializations](/guides/create-new-materializat
## Configuring materializations
By default, dbt models are materialized as "views". Models can be configured with a different materialization by supplying the `materialized` configuration parameter as shown below.

<Tabs>

<TabItem value="Project file">

<File name='dbt_project.yml'>

```yaml
Expand Down Expand Up @@ -49,6 +53,10 @@ models:
</File>
</TabItem>
<TabItem value="Model file">
Alternatively, materializations can be configured directly inside of the model sql files. This can be useful if you are also setting [Performance Optimization] configs for specific models (for example, [Redshift specific configurations](/reference/resource-configs/redshift-configs) or [BigQuery specific configurations](/reference/resource-configs/bigquery-configs)).
<File name='models/events/stg_event_log.sql'>
Expand All @@ -63,6 +71,31 @@ from ...

</File>

</TabItem>

<TabItem value="Property file">

Materializations can also be configured in the model's `properties.yml` file.

<File name='models/properties.yml'>

```yaml

version: 2

models:
- name: events
config:
materialized: table

```

</File>

</TabItem>

</Tabs>

## Materializations


Expand Down

0 comments on commit 80f5b1b

Please sign in to comment.