Closed ags-de closed 3 months ago
@ags-de The partition_by
config is dictionary, not a list. Try this instead:
# model1.yml
version: 2
models:
- name: model1
config:
materialized: incremental
on_configuration_change: fail
partition_by:
field: creation_time
data_type: timestamp
granularity: day
And let us know if that works!
@jtcohen6 thank you for swift response.
That did indeed work, I wouldn't thought about that. Much appreciated!
Is this a new bug in dbt-bigquery?
Current Behavior
In my dbt project, I put all my config to .yml files specified to each model:
I have a target BigQuery incremental table partitioned by
creation_time
column. I based my config on offical dbt-bigquery documentation:However, when I run the model, I get the
Could not parse partition config
error.The only thing that seems to work is to put
partition_by
config to .sql file:Expected Behavior
I want to be able to put all needed config in one place (
partition_by
in this case), specifically .yml file associated with the model.Steps To Reproduce
With environment and file structure specified in
Current Behavior
, run:$ dbt run
Relevant log output
Environment
Additional Context
dbt docs on BigQuery config
source: https://docs.getdbt.com/reference/resource-configs/bigquery-configs