MCPcopy Index your code
hub / github.com/feast-dev/feast / _serialize_struct_schema

Function _serialize_struct_schema

sdk/python/feast/field.py:275–280  ·  view source on GitHub ↗

Serialize a Struct's field schema to a JSON string for tag storage.

(struct_type: Struct)

Source from the content-addressed store, hash-verified

273
274
275def _serialize_struct_schema(struct_type: Struct) -> str:
276 """Serialize a Struct's field schema to a JSON string for tag storage."""
277 schema_dict = {}
278 for name, feast_type in struct_type.fields.items():
279 schema_dict[name] = _feast_type_to_str(feast_type)
280 return json.dumps(schema_dict)
281
282
283def _deserialize_struct_schema(schema_str: str) -> Struct:

Callers 1

to_protoMethod · 0.85

Calls 1

_feast_type_to_strFunction · 0.85

Tested by

no test coverage detected