[Bug] Materialized views are executing additional SQL statements during refresh through dbt core #616
Labels
feature:materialized-views
Issues related to materialized views
pkg:dbt-redshift
Issue affects dbt-redshift
type:bug
Something isn't working as documented
Is this a new bug in dbt-redshift?
Current Behavior
While refreshing the materialized views through dbt core, i see some additional SQL statements are getting executed by dbt such as drop statements of backup and temp tables, view definition and tables svv_table_info, svv_mv_info along with the refresh statement which is taking additional time to refresh the model. Is there a way to avoid running those additional steps to reduce the overall runtime as refresh statement alone is sufficient ?
Expected Behavior
Execution of Refresh materialized view table_name alone
Steps To Reproduce
{{
config({
"materialized":"materialized_view",
"tags": "materialized_Views",
"alias":"table_1"
})
}}
select * from datalake_table
dbt run -s table_1
Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: