-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs-revamp] - Clean up External assets guide (#24402)
## Summary & Motivation ## How I Tested These Changes ## Changelog NOCHANGELOG --------- Co-authored-by: colton <[email protected]>
- Loading branch information
1 parent
6dca8c2
commit 3fa4cf6
Showing
4 changed files
with
56 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...nippets/docs_beta_snippets/guides/data-modeling/external-assets/dag-of-external-assets.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
import dagster as dg | ||
|
||
# highlight-start | ||
# Three external assets that depend on each other | ||
raw_data = dg.AssetSpec("raw_data") | ||
stg_data = dg.AssetSpec("stg_data", deps=[raw_data]) | ||
cleaned_data = dg.AssetSpec("cleaned_data", deps=[stg_data]) | ||
# highlight-end | ||
|
||
|
||
# Native asset that depends on an external asset | ||
@dg.asset(deps=[cleaned_data]) | ||
def derived_data(): ... | ||
|
||
|
||
# Define the Definitions object | ||
defs = dg.Definitions(assets=[raw_data, stg_data, cleaned_data, derived_data]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3fa4cf6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagster-docs-beta ready!
✅ Preview
https://dagster-docs-beta-pfj7m82mi-elementl.vercel.app
https://dagster-docs-beta.dagster-docs.io
Built with commit 3fa4cf6.
This pull request is being automatically deployed with vercel-action