Mike K
11/08/2019, 12:18 AMField
with a Dict type, but getting DagsterInvalidDefinitionError
. tried both the dagster Dict (from dagster import Dict
) and the typing Dict. the error message seems to imply Dicts and NamedDicts are valid, thoughnate
11/08/2019, 12:20 AMMike K
11/08/2019, 12:21 AMMike K
11/08/2019, 12:22 AMnate
11/08/2019, 12:22 AMDict
expects to have explicit schema of the fields it contains, e.g.
Field(Dict({'some_key': Field(str)}))
I think what you want here is probably PermissiveDict
which permits arbitrary key-value pairsMike K
11/08/2019, 12:23 AMnate
11/08/2019, 12:25 AMnate
11/08/2019, 12:29 AMstr
instead of having to from dagster import String
, int
, etc.nate
11/08/2019, 12:29 AM