Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dataders authored Jul 20, 2023
1 parent dc5ca3b commit 9a64f90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion website/docs/reference/resource-configs/postgres-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ models:

### Limitations

Below are current limitations that we hope to address in a future release.
#### Changing materialization to and from "materialized_view"

Swapping an already materialized model to be a materialized view and vise versa. The workaround is the manually drop the existing materialization in the data warehouse before calling `dbt run` again.
Swapping an already materialized model to be a materialized view and vise versa. The workaround is the manually drop the existing materialization in the data warehouse before calling `dbt run` again. Normally, re-running with the `--full-refresh` flag would resolve this, but not in this case.

To illustrate, assume for the example model below, `my_model`, that it has already been materialized to the underlying data platform via `dbt run`. If a user then changes the model's config to be `materialized="materialized_view"`, they will get an error. The workaround is to execute `DROP TABLE my_model` on the data warehouse before trying the model again.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ models:

### Limitations

Below are current limitations that we hope to address in a future release.
#### Changing materialization from "materialized_view" to table or view

Swapping a materialized view to be a table or view is not supported. The workaround is to manually drop the existing materialized view in the data warehouse before calling `dbt run` again.
Expand Down
4 changes: 2 additions & 2 deletions website/docs/reference/resource-configs/snowflake-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ The following examples create a dynamic table:
config(
materialized = 'dynamic_table',
warehouse = 'MY_WAREHOUSE',
target_lag = '10 min',
target_lag = '10 minutes',
)
}}
```
Expand All @@ -376,7 +376,7 @@ models:
path:
materialized: dynamic_table
warehouse: MY_WAREHOUSE
target_lag: '10 min'
target_lag: '10 minutes'
```

</File>
Expand Down

0 comments on commit 9a64f90

Please sign in to comment.