[Bug] Temporary Tables not being cleaned for MERGE and on_schema_change != 'ignore' #1389
Open
2 tasks done
Labels
bug
Something isn't working
Is this a new bug in dbt-bigquery?
Current Behavior
If you had some example model:
When we run the model we create a temporary table (as we have specified to have it check the schema
some_example_model__dbt_tmp
)Which is then used for the MERGE:
dbt-bigquery/dbt/include/bigquery/macros/materializations/incremental_strategy/merge.sql
Line 30 in 79fbd90
However we do not clean the temporary table
Expected Behavior
The temporary table is removed as part of the run, like it currently is for
insert_overwrite
:dbt-bigquery/dbt/include/bigquery/macros/materializations/incremental_strategy/insert_overwrite.sql
Line 91 in 79fbd90
Would I be able to raise a PR against main to fix this? it's not the biggest issue in the world but can make user facing datasets unnecessarily messy for 12 hours until the tables self delete
Steps To Reproduce
Relevant log output
No response
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: