https://dagster.io/ logo
#integration-dbt
Title
# integration-dbt
o

Olivier Girardot

12/07/2022, 9:37 PM
Hello I was wandering if there was a way to tell Dagster that DBT incremental models are partitionned assets ?
1
o

owen

12/07/2022, 11:02 PM
hi @Olivier Girardot! you are able to supply a partitions_def argument (as well as a partition_key_to_vars function) to
load_assets_from_dbt*
. This will apply the partitions def to all assets loaded with that call, so if you want to apply it to just the incremental models you'd need to split your dbt asset loading into two separate calls (one just for incremental models and one just for non-incremental models)
o

Olivier Girardot

12/08/2022, 2:59 PM
Thanks owen it's pretty clear
6 Views