Hi everyone! I'm trying to log some asset metadata...
# ask-community
p
Hi everyone! I'm trying to log some asset metadata, and it seems that
MetadataValue.table
is not supported within
AssetObservation
metadata? See the following toy example:
Copy code
@asset
def dummy_asset(context):
    context.log_event(
        AssetObservation(asset_key="dummy_asset", metadata={
            "summary": MetadataValue.table(records=[TableRecord(foo=1, bar=2)]),
        })
    )

# fails with:
TypeError: __new__() takes 1 positional argument but 2 were given
Same example using other types (e.g.
MetadataValue.text
) does work. What I'm trying to achieve is logging a table summary of the asset data, so that it is displayed on the "View Asset" page? Is this supposed to work, or is there a better/different way to do this? Thanks!
p
This is supposed to work… It looks like there’s some serialization issue at play here with the multiprocess executor… We’ll take a look!
❤️ 1
@Dagster Bot issue MetadataValue.table hitting some serialization issues with the multiprocess executor
d