Create a Feast Entity. Args: name: Entity name join_keys: List of join key column names (defaults to [name]) description: Entity description tags: Optional tags value_type: Value type for the entity (default: STRING)
(
self,
name: str,
join_keys: Optional[List[str]] = None,
description: str = "",
tags: Optional[Dict[str, str]] = None,
value_type: ValueType = ValueType.STRING,
)
| 279 | ) |
| 280 | |
| 281 | def create_entity( |
| 282 | self, |
| 283 | name: str, |
| 284 | join_keys: Optional[List[str]] = None, |
| 285 | description: str = "", |
| 286 | tags: Optional[Dict[str, str]] = None, |
| 287 | value_type: ValueType = ValueType.STRING, |
| 288 | ) -> Entity: |
| 289 | """ |
| 290 | Create a Feast Entity. |
| 291 | |
| 292 | Args: |
| 293 | name: Entity name |
| 294 | join_keys: List of join key column names (defaults to [name]) |
| 295 | description: Entity description |
| 296 | tags: Optional tags |
| 297 | value_type: Value type for the entity (default: STRING) |
| 298 | |
| 299 | Returns: |
| 300 | A Feast Entity |
| 301 | """ |
| 302 | return Entity( |
| 303 | name=name, |
| 304 | join_keys=join_keys or [name], |
| 305 | value_type=value_type, |
| 306 | description=description, |
| 307 | tags=tags or {}, |
| 308 | ) |
| 309 | |
| 310 | def create_feature_view( |
| 311 | self, |