You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: [Python] FeastFeatureStoreEnrichmentHandler crashes get_cache_key with entity_row_fn, ignores exception_level, and leaks temp YAML files #41347
When entity_row_fn=lambda row: {'driver_id': row.raw_driver_id} is used (where 'driver_id' is the Feast entity name, not a field on request), get_cache_key looks up request._asdict()['driver_id'] instead of entity_dict[entity_id], crashing with KeyError: 'driver_id' whenever Enrichment(...).with_redis_cache(...) is enabled.
exception_level parameter is dead code (lines 129-140 vs 167-186): __init__ documents exception_level ("to set the level when None feature values are fetched from the online Feast store") and stores self._exception_level = exception_level (line 140), but self._exception_level is never referenced anywhere in __call__ (ExceptionLevel.RAISE never raises and ExceptionLevel.WARN never logs on missing entities).
Leaked temporary YAML files in /tmp (lines 43-50, 147, 188-190): download_fs_yaml_file creates tempfile.NamedTemporaryFile(..., delete=False) in __enter__, and __exit__ sets self.store = None without unlinking the downloaded file.
get_cache_key indexes request._asdict()[entity_id] instead of using entity_dict[entity_id]; __call__ omits checking self._exception_level when fetched feature values are None; and __exit__ does not unlink local_repo_path.
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Activity