Deserialize a JSON string from tags back to a Struct type.
(schema_str: str)
| 281 | |
| 282 | |
| 283 | def _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) |
no test coverage detected