Skip to content

How can we mark partitions as "materialized" in dagster if the data already exists in the DWH? #17847

Answered by sryza
cyberjar09 asked this question in Q&A
Discussion options

You must be logged in to vote

You can report assets and asset partitions as materialized in Dagster without actually running the computation that materializes. This is possible from the UI and using Dagster's Python APIs.

From the UI

If you go to the page for the asset, you can click the dropdown next to the "Materialize" button and click "Report materialization events".

Then you'll get a dialog that allows you to choose a partition range:

Using the Python APIs

First, get your hands on a DagsterInstance: #7427.

Then you can use DagsterInstance.report_runless_asset_event:

from dagster import AssetMaterialization, AssetKey

for partition_key in partition_keys:
    asset_materialization = AssetMaterialization(AssetKey("…

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@weberdavid
Comment options

@sryza
Comment options

@JasperHG90
Comment options

@sryza
Comment options

@JasperHG90
Comment options

Answer selected by sryza
Comment options

You must be logged in to vote
1 reply
@sryza
Comment options

Comment options

You must be logged in to vote
1 reply
@sryza
Comment options

Comment options

You must be logged in to vote
1 reply
@varunp2k
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: partitions Related to Partitions
6 participants