Closed balmasi closed 1 year ago
Hi, thanks for your report! We'll look into this on the new year. Do you mean dbtvault v0.9.2? 0.9.4 doesn't currently exist.
Hi, thanks for your report! We'll look into this on the new year. Do you mean dbtvault v0.9.2? 0.9.4 doesn't currently exist.
Yup. my bad.
Happy holidays!
Hi! We've added some fixes for this in 0.9.5. Further improvements coming in 0.9.6. Please re-open if they continue. Thanks :)
Describe the bug
When using
period='HOUR'
on thevault_insert_by_period
materialization, the load fails.Environment
dbt version: 1.3 dbtvault version: 0.9.2 Database/Platform: Bigquery
To Reproduce Steps to reproduce the behavior:
vault_insert_by_period
materialization on a satellite with theHOUR
periodExpected behavior
This is happening cause in BQ we typically use the
timestamp
type for datetime metadata andDATE_ADD
used in dbtvault only works down to theDAY
grain.For the correct behaviour, you'd need to cast to a TIMESTAMP and use
TIMESTAMP_ADD
Workaround
Use the
vault_insert_by_rank
materization instead.