From 80f5b1b81b2d495c9e0c1f669c630d92fd15312f Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:03:13 -0500 Subject: [PATCH 1/5] Adding property file config for materializations --- website/docs/docs/build/materializations.md | 33 +++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/website/docs/docs/build/materializations.md b/website/docs/docs/build/materializations.md index 723acf87414..0ae37be08cb 100644 --- a/website/docs/docs/build/materializations.md +++ b/website/docs/docs/build/materializations.md @@ -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. + + + + ```yaml @@ -49,6 +53,10 @@ models: + + + + 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)). @@ -63,6 +71,31 @@ from ... + + + + +Materializations can also be configured in the model's `properties.yml` file. + + + +```yaml + +version: 2 + +models: + - name: events + config: + materialized: table + +``` + + + + + + + ## Materializations From fbcab4a59c85668cadfc3d28fccfad25042d75e9 Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:58:51 +0000 Subject: [PATCH 2/5] Update website/docs/docs/build/materializations.md --- website/docs/docs/build/materializations.md | 1 - 1 file changed, 1 deletion(-) diff --git a/website/docs/docs/build/materializations.md b/website/docs/docs/build/materializations.md index 0ae37be08cb..259b8265181 100644 --- a/website/docs/docs/build/materializations.md +++ b/website/docs/docs/build/materializations.md @@ -80,7 +80,6 @@ Materializations can also be configured in the model's `properties.yml` file. ```yaml - version: 2 models: From fca3ec0742825322b887afdec5f905a43f0af3b7 Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:04:39 +0000 Subject: [PATCH 3/5] Update website/docs/docs/build/materializations.md --- website/docs/docs/build/materializations.md | 1 - 1 file changed, 1 deletion(-) diff --git a/website/docs/docs/build/materializations.md b/website/docs/docs/build/materializations.md index 259b8265181..4ff9c3440a0 100644 --- a/website/docs/docs/build/materializations.md +++ b/website/docs/docs/build/materializations.md @@ -86,7 +86,6 @@ models: - name: events config: materialized: table - ``` From 2ce29c4f60fb1bde9c1d54e9469b9a120d58144e Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:05:36 +0000 Subject: [PATCH 4/5] Update materializations.md --- website/docs/docs/build/materializations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/build/materializations.md b/website/docs/docs/build/materializations.md index 4ff9c3440a0..69c93ba99b0 100644 --- a/website/docs/docs/build/materializations.md +++ b/website/docs/docs/build/materializations.md @@ -18,7 +18,7 @@ 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. +By default, dbt models are materialized as "views". Models can be configured with a different materialization by supplying the [`materialized` configuration](/reference/resource-configs/materialized) parameter as shown in the following tabs. From 614dd55f6b5bc88fd5ec91eb025397acc18a20ba Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:00:22 -0500 Subject: [PATCH 5/5] Update website/docs/docs/build/materializations.md Co-authored-by: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> --- website/docs/docs/build/materializations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/build/materializations.md b/website/docs/docs/build/materializations.md index 69c93ba99b0..2ed30c7126a 100644 --- a/website/docs/docs/build/materializations.md +++ b/website/docs/docs/build/materializations.md @@ -75,7 +75,7 @@ from ... -Materializations can also be configured in the model's `properties.yml` file. +Materializations can also be configured in the model's `properties.yml` file. The following example shows the `table` materialization type. For a complete list of materialization types, refer to [materializations](/docs/build/materializations#materializations).