Skip to content

Commit

Permalink
fix: typo in adding-partitions-to-assets.md (#19568)
Browse files Browse the repository at this point in the history
## Summary & Motivation
Simple typo I noticed during the [Partitions
lesson](https://courses.dagster.io/courses/take/dagster-essentials/multimedia/48123807-adding-partitions-to-assets)

## How I Tested These Changes
n/a
  • Loading branch information
brandonpeebles authored Feb 2, 2024
1 parent 4a322c8 commit 6fe08e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ To add the partition to the asset:
def taxi_trips_file(context):
```

**Note**: The `context` argument isn’t specific to partitions. However, this is the first time you've used it in Dagster University. The `context` argument provides information about how Dagster is running and materializing your asset. For example, you can use it to find out which partition Dagster is materializing, which job triggered the materialization, or what metadata was been attached to its previous materializations.
**Note**: The `context` argument isn’t specific to partitions. However, this is the first time you've used it in Dagster University. The `context` argument provides information about how Dagster is running and materializing your asset. For example, you can use it to find out which partition Dagster is materializing, which job triggered the materialization, or what metadata was attached to its previous materializations.

4. In the original asset code, the logic was hard-coded to specifically fetch data for March 2023 (`'2023-03'`). Use the `context` argument’s `asset_partition_key_for_output()` method to dynamically fetch a specific partition’s month of data:

Expand Down

1 comment on commit 6fe08e1

@github-actions
Copy link

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 ready!

✅ Preview
https://dagster-docs-76trdcxy8-elementl.vercel.app
https://master.dagster.dagster-docs.io

Built with commit 6fe08e1.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.