https://dagster.io/ logo
#dagster-feedback
Title
# dagster-feedback
v

Vinnie

12/08/2022, 11:46 AM
Not sure if this is a bug or if I’m misconfiguring something, but it seems like graph-based
AssetsDefinitions
don’t (can’t?) contain metadata. Inspecting the python object does properly return metadata under the property
_metadata_by_key
but it doesn’t show up on dagit and can’t be accessed through
my_asset.metadata
(or rather, the property doesn’t exist).
Copy code
AssetsDefinition.from_graph(
    my_graph,
    keys_by_output_name={"result": AssetKey("my_cool_key")},
    metadata_by_output_name={"result": {"column_schema": TableSchema.from_name_type_dict({"some_col": "str"})}},
)
o

owen

12/09/2022, 12:52 AM
hi @Vinnie! I looked into this, and it was indeed a bug, throwing together a PR for this now
v

Vinnie

12/09/2022, 8:28 AM
Thanks Owen!
o

owen

12/09/2022, 4:40 PM
fix has been merged in, will go out next week 🙂
👍 1
v

Vinnie

12/16/2022, 7:30 AM
Just upgraded locally, works as expected 🙂