From 04d4f988aebcaa1d69369e32854f857449c29edb Mon Sep 17 00:00:00 2001 From: Alex Noonan <48368867+C00ldudeNoonan@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:01:25 -0500 Subject: [PATCH] removed yield from link, site is now spam redirect (#25806) ## Summary & Motivation community member [told us](https://dagster.slack.com/archives/C01U5LFUZJS/p1731056410596729) that this [link](https://pythonalgos.com/generator-functions-yield-and-yield-from-in-python/) explains the difference between yield and yield from redirects to a spam site. ## How I Tested These Changes ## Changelog I removed the link in the course. --- .../lesson-3/5-loading-dbt-models-into-dagster-as-assets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dagster-university/pages/dagster-dbt/lesson-3/5-loading-dbt-models-into-dagster-as-assets.md b/docs/dagster-university/pages/dagster-dbt/lesson-3/5-loading-dbt-models-into-dagster-as-assets.md index 19d4fb7140226..a50a6fdce3c98 100644 --- a/docs/dagster-university/pages/dagster-dbt/lesson-3/5-loading-dbt-models-into-dagster-as-assets.md +++ b/docs/dagster-university/pages/dagster-dbt/lesson-3/5-loading-dbt-models-into-dagster-as-assets.md @@ -63,7 +63,7 @@ We’ll only create one `@dbt_assets` definition for now, but in a later lesson, - We use the `dbt` argument (which is a `DbtCliResource`) to execute a dbt command through its `.cli` method. - The `.stream()` method fetches the events and results of this dbt execution. - This is one of multiple ways to get the Dagster events, such as what models materialized or tests passed. We recommend starting with this and exploring other methods in the future as your use cases grow (such as fetching the run artifacts after a run). In this case, the above line will execute `dbt run`. - - The results of the `stream` are a Python generator of what Dagster events happened. We used [`yield from`](https://pythonalgos.com/generator-functions-yield-and-yield-from-in-python/) (not just `yield`!) to have Dagster track asset materializations. + - The results of the `stream` are a Python generator of what Dagster events happened. We used `yield from` (not just `yield`!) to have Dagster track asset materializations. At this point, `dbt.py` should look like this: