Jérôme MONTIGNY
03/12/2024, 9:14 AMScout
03/12/2024, 9:14 AM@multi_asset
decorator to produce your data assets, ensuring that each data asset has a unique key associated with it. This approach allows you to define multiple assets that can be produced from a single computation or process, such as an Airbyte sync, while maintaining unique identifiers for each asset. For dbt models that reference the same underlying table, you can configure the dbt sources.yml
file to associate each dbt source with a unique Dagster asset key. This way, even though the dbt models are using the same physical table, they will be treated as separate assets within the Dagster framework. Here's a general approach based on the documentation: 1. Use the @multi_asset
decorator to define multiple assets from a single Airbyte connection. 2. Ensure that each asset has a unique asset key. 3. Configure your dbt sources.yml
to reference these unique asset keys accordingly. For more detailed guidance on using @multi_asset
with dbt sources and configuring dbt asset keys, you can refer to the dbt integration documentation provided by Dagster. If you need further assistance with the specific error you're encountering or with implementing the @multi_asset
decorator, please provide additional details about the error message and your current setup, and we can offer more targeted advice.