Julien DEBLANDER
08/01/2023, 4:19 PMowen
08/01/2023, 6:39 PMload_assets_from_airbyte_instance
(and related) functions support a connection_to_auto_materialize_policy_fn
, which might be what you're looking for hereJulien DEBLANDER
08/01/2023, 8:28 PMowen
08/01/2023, 8:33 PMJulien DEBLANDER
08/01/2023, 8:40 PMJulien DEBLANDER
08/01/2023, 8:41 PMowen
08/01/2023, 8:49 PMShangwei Wang
08/14/2023, 9:55 PMconnection_to_auto_materialize_policy_fn
should work with OSS airbyte? I have AMP setup for all my dbt models, and Airbyte assets (defined as dbt source
for my dbt models to get that nice lineage) via load_assets_from_airbyte_instance
, but AMP doens’t show up for airbyte assets… since AMP doens’t show up, my dbt models are not being auto-materialized until I manually materialize the Airbyte assets… any pointers appreciated, thanks! (I’m on dagster 1.4.5)owen
08/15/2023, 4:52 PMlist_of_assets = [...] # get this from load_assets_from_airbyte_instance
modified_list_of_assets = [
assets_def.with_attributes(auto_materialize_policy=...) for assets_def in list_of_assets
]
Shangwei Wang
08/15/2023, 4:54 PMairbyte_assets = load_assets_from_airbyte_instance(
airbyte.airbyte_instance,
key_prefix=["airbyte"],
connection_to_group_fn=
lambda connection_name:
f'airbyte_{re.sub("[^0-9a-zA-Z_]+", "_", connection_name)}'.lower(),
connection_filter=lambda connection: connection.name.startswith("Warehouse"),
connection_to_auto_materialize_policy_fn=lambda _: AutoMaterializePolicy.lazy(),
)
Shangwei Wang
08/15/2023, 4:54 PMowen
08/15/2023, 10:13 PMwith_attributes
method above, does that resolve the issue?Shangwei Wang
08/15/2023, 11:11 PMShangwei Wang
08/16/2023, 10:48 PMauto_materialize_policy
isn’t a supported param for with_attributes
Shangwei Wang
08/16/2023, 10:56 PMairbyte_assets = _airbyte_assets.with_attributes_for_all(
group_name=None,
freshness_policy=None,
backfill_policy=None,
auto_materialize_policy=AutoMaterializePolicy.lazy(),
)