https://dagster.io/ logo
#ask-community
Title
# ask-community
s

Son Giang

05/10/2022, 2:44 PM
Hi all, how to retrieve asset metadata in sensor when we use AssetMaterialization. I’m using the lastest release 0.14.14
Copy code
context.log_event(
        AssetMaterialization(
            asset_key=AssetKey(["key"]),
            metadata={
                "metadata_key": {"x": "xxx", "y": "yyy"}
            },
        )
    )
y

yuhan

05/10/2022, 7:19 PM
you can retrieve the AssetMaterialization back from
asset_event.event_specific_data.materialization