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

Function _deserialize_struct_schema

sdk/python/feast/field.py:283–289  ·  view source on GitHub ↗

Deserialize a JSON string from tags back to a Struct type.

(schema_str: str)

Source from the content-addressed store, hash-verified

281
282
283def _deserialize_struct_schema(schema_str: str) -> Struct:
284 """Deserialize a JSON string from tags back to a Struct type."""
285 schema_dict = json.loads(schema_str)
286 fields = {}
287 for name, type_str in schema_dict.items():
288 fields[name] = _str_to_feast_type(type_str)
289 return Struct(fields)

Callers 1

from_protoMethod · 0.85

Calls 2

StructClass · 0.90
_str_to_feast_typeFunction · 0.85

Tested by

no test coverage detected