Bartosz Kopytek
01/11/2023, 3:15 AMdbt_assets = load_assets_from_dbt_project(
project_dir=DBT_PROJECT_PATH, profiles_dir=DBT_PROFILES, key_prefix=["jaffle_shop"]
)
How can I access/modify models as individual assets (to add metada, versioning, plots etc.)?
mock example:
@asset
def customers_dbt_asset(dbt_asset = customers, key_prefix=["jaffle_shop"], group_name="staging"):
return customers
sandy
01/11/2023, 4:28 PMload_assets_from_dbt_project
- there are a few that let you choose a group name, record runtime metadata, etc. Let me know if there's anything missing there that you needBartosz Kopytek
01/12/2023, 8:28 AMsandy
01/12/2023, 9:30 PMnode_info_to_freshness_policy_fn
argument of the method I mentioned above. it discusses how you can set freshness policies inside dbt by using dbt config.Bartosz Kopytek
01/19/2023, 3:55 PM