geoHeil
12/13/2022, 2:35 PMrex
12/13/2022, 2:36 PMpartitions_def
and partition_key_to_vars_fn
to the function that generates your dbt assetsAdam Bloom
12/13/2022, 2:36 PMgeoHeil
12/13/2022, 2:37 PMAdam Bloom
12/13/2022, 2:38 PMowen
12/13/2022, 8:49 PM@configured(dbt_cli_resource, config_schema={"vars": dict})
def custom_dbt_cli_resource(config):
return {
"vars": config["vars"],
"project-dir": DBT_PROJECT_DIR,
"profiles-dir": DBT_PROFILES_DIR
}
Archit Raj
02/13/2023, 6:55 AMowen
02/13/2023, 5:14 PMdbt_cli_resource
, you can pass in your custom_dbt_cli_resource
(i.e. resources = {"dbt": custom_dbt_cli_resource}
)Archit Raj
02/13/2023, 5:41 PMowen
02/14/2023, 12:38 AMdefine_asset_job(...)
then attempting to launch a run for that job in the UI should prompt you to fill in configuration for the vars parametergeoHeil
03/02/2023, 9:09 PMowen
03/02/2023, 11:26 PMload_assets_from_dbt...
multiple times, once for each subset of assets with a different partitions definition