[Bug] Can't use data contract constraints together with 'time_ingestion_partitioning="true"' in incremental models #525
Labels
pkg:dbt-bigquery
Issue affects dbt-bigquery
triage:awaiting-response
Awaiting a response from the reporter
type:bug
Something isn't working as documented
Is this a new bug in dbt-bigquery?
Current Behavior
Dbt errors when combining an incremental model with
time_ingestion_partitioning
enabled and also enforcing model contract constraints.I'd love to know whether this is intended or if this is potentially a bug that could be worked on :)
Expected Behavior
Dbt should not error out on columns 'consumed' by the
time_ingestion_partitioning
flags that are in the dbt model but not factually in the output schema or BigQuery table when enforcing model contract constraints.The partitioning column should not have 'presence enforcement' when this flag is enabled (ideally).
Steps To Reproduce
When enforcing the data contract like so:
and subsequently building with
dbt build --select incremental_test
I get the error attached in the log output.Relevant log output
Additional Context
No response
The text was updated successfully, but these errors were encountered: