Serialize a Struct's field schema to a JSON string for tag storage.
(struct_type: Struct)
| 273 | |
| 274 | |
| 275 | def _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 | |
| 283 | def _deserialize_struct_schema(schema_str: str) -> Struct: |
no test coverage detected