-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix refresh syntax, config comparison with empty labels (#983)
* map an empty labels dict to none for comparison * remove drop statement that isn't used * fix refresh statement * add drop materialized view back, it gets called by replace * changelog
- Loading branch information
1 parent
b8af6a6
commit f139e95
Showing
3 changed files
with
12 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: Fix refresh syntax, config comparison with empty labels | ||
time: 2023-10-25T22:30:03.0034-04:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "983" |
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
2 changes: 1 addition & 1 deletion
2
dbt/include/bigquery/macros/relations/materialized_view/refresh.sql
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,3 +1,3 @@ | ||
{% macro bigquery__refresh_materialized_view(relation) %} | ||
call bq.refresh_materialized_view('{{ relation }}') | ||
call bq.refresh_materialized_view('{{ relation.database }}.{{ relation.schema }}.{{ relation.identifier }}') | ||
{% endmacro %} |