Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagster-dbt] add
with_snowflake/bigquery_insights
chainable method (…
…dagster-io#23183) ## Summary Adds a `with_snowflake_insights` and `with_bigquery_insights` methods that can be chained to a `.stream()` call, simplifying using insights alongside other deferred fetches: Before: ```python @dbt_assets(manifest=snowflake_manifest_path) def jaffle_shop_dbt_assets( context: AssetExecutionContext, dbt: DbtCliResource, ): dbt_cli_invocation = dbt.cli(["build", "--profile", "unittest"], context=context) yield from dbt_with_snowflake_insights(context, dbt_cli_invocation) ``` Now: ```python @dbt_assets(manifest=snowflake_manifest_path) def jaffle_shop_dbt_assets( context: AssetExecutionContext, dbt: DbtCliResource, ): yield from dbt.cli( ["build", "--profile", "unittest"], context=context ).stream().with_snowflake_insights() ``` ## Test Plan dagster-io/internal#10731
- Loading branch information