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

Jordan

07/15/2022, 8:15 AM
Hi! In version 0.15.6, it no longer seems possible to have
None
metadata in an asset, although it was possible in previous versions. This is the error:
dagster.core.errors.DagsterInvalidMetadata: Could not resolve the metadata value for "none_type" to a known type. Its type was <class 'NoneType'>. Consider wrapping the value with the appropriate MetadataValue type.
And the code to reproduce the error :
Copy code
@asset(metadata={'none_type' : None})
def asset():
    return 1

job = define_asset_job('job', selection = AssetSelection.assets(asset))

@repository()
def repo():
    return [job, asset]
Sorry for the identification @sandy, but I haven't had any feedback on the issue. Is this a normal behavior?
s

sandy

07/19/2022, 3:36 PM
@sean - do you know what's going on here?
o

owen

07/19/2022, 5:22 PM
I have a fix out for this bug, thanks for this report!
3 Views