[Bug] Changing Incremental Model Partitions on Bigquery #539
Labels
feature:incremental
Issues related to incremental materializations
help_wanted
Extra attention is needed
pkg:dbt-bigquery
Issue affects dbt-bigquery
type:bug
Something isn't working as documented
Is this a new bug in dbt-bigquery?
Current Behavior
Recently ran into an issue with Bigquery and incremental model partitions.
When the partition of an existing incremental model needs to be changed, the
dbt full refresh
command runs acreate
orreplace
statement against the model, which fails with the error:This indicates that despite the replace statement, Bigquery expects the same partitioning specification as the original table.
We found that running a
drop
statement followed by acreate
statement succeeds with no errors.Ideally dbt would be able to generate these statements on full refresh.
Please let us know your thoughts!
Expected Behavior
Full refresh should be able to generate a drop/create on full refresh.
Steps To Reproduce
Have incremental model partitions
When the partition of this model needs to be changed, get error when dbt full refresh command runs create/replace against the model.
Relevant log output
This is reported by the customer. I will ask them to subscribe to this Bug so that they can add comments if additional questions/input are needed.
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: