[Bug] full refresh of failed model with new partition schema fails on __dbt_tmp #1342
Open
2 tasks done
Labels
bug
Something isn't working
Is this a new bug in dbt-bigquery?
Current Behavior
If I change partition columns of an incremental model and forget to manually do a full refresh the dbt job will throw an error. This is expected. I will then do a full refresh of the model using
dbt build --select <model> --full-refresh --target prod --debug
and the model is marked as success.What is not apparent is that the __dbt_tmp table will linger until the next time the full build is run.
The dbt build job will fail on the next run, however, due to the fact that bigquery doesn't allow partition changes in a
create or replace
statement.Expected Behavior
A full refresh of a model will drop the
__dbt_tmp
table.Steps To Reproduce
dbt build
job--full-refresh
dbt build
job againRelevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: