You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
partition_by.render() was updated in v0.19.0 to handle granularity-based partitioning (week, month, year). This resulted in an regression for int64-type columns with incremental models using the insert_overwrite strategy.
$ dbt run
$ dbt run
...
Database Error in model int_table (models/int_table.sql)
Query error: Function not found: int64_trunc at [33:34]
compiled SQL at target/run/root_project/models/int_table.sql
v0.19.0:
when not matched by source
and int64_trunc(DBT_INTERNAL_DEST.id, day) in unnest(dbt_partitions_for_replacement)
then delete
v0.18.1:
when not matched by source
andDBT_INTERNAL_DEST.idin unnest(dbt_partitions_for_replacement)
then delete
Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
partition_by.render()
was updated in v0.19.0 to handle granularity-based partitioning (week, month, year). This resulted in an regression forint64
-type columns with incremental models using theinsert_overwrite
strategy.https://github.com/fishtown-analytics/dbt/blob/6c6649f9129d5d108aa3b0526f634cd8f3a9d1ed/plugins/bigquery/dbt/adapters/bigquery/impl.py#L61-L65
Lines 61-62 should become:
Let's fix these lines and add:
partition_by.render()
. We addedtest_parse_partition_by
in v0.16.0 for parsing old partition_by configs as new dict-style configs.022_bigquery_test
):int64
+insert_overwrite
Steps to reproduce
v0.19.0:
v0.18.1:
Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
System information
Which database are you using dbt with?
The output of
dbt --version
:The text was updated successfully, but these errors were encountered: