Hi all, I'm trying to find a solution for this. On...
# ask-community
r
Hi all, I'm trying to find a solution for this. On version
1.2.2
it was working properly. Now that I updated to
1.2.7
and is no longer working. I'm receiving this issue:
dagster._core.errors.DagsterInvalidMetadata: Could not resolve the metadata value for "schema" to a known type. Value is not JSON serializable.
Seems I cannot have custom metadata anymore. I was passing SchemaField from google BigQuery lib. Snippet:
Copy code
@asset(
    metadata= {
        "my_key" : [SchemaField("my_col", "STRING", mode="REQUIRED")]
    }
)
s
Hi Rafael, do you have a backtrace for this? I am trying to repro and the snippet you provide is not on its own generating the error (i.e. the metadata is handled correctly at the definitions level)
r
Hi @sean I did refactor my code to have only json serializable objects in metadata. I'm not passing BigQuery SchemaFileds anymore.