GeezerVison is showing github.com — `TrinoOfflineStore` does not cleanup temporary tables · Issue #6306 · feast-dev/feast
TrinoOfflineStore does not cleanup temporary tables #6306
Description
Expected Behavior
Temporary entity tables created during get_historical_features() should be cleaned up after the retrieval job completes, consistent with how BigQuery, Redshift, and Athena handle it.
Current Behavior
Each call to get_historical_features() with a pandas DataFrame entity_df creates a permanent table ({catalog}.{dataset}.feast_entity_df_<uuid>) that is never dropped, leaking tables in the Trino catalog indefinitely.
Steps to reproduce
- This is a known issue in
TrinoOfflineStore https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/trino.py#L486
Specifications
- Version: 0.50+
- Platform: Any
- Subsystem:
TrinoOfflineStore
Possible Solution
Refactor TrinoRetrievalJob to accept a context manager (query_generator) instead of a plain query string, following the pattern used by BigQuery/Redshift/Athena, and add a DROP TABLE IF EXISTS in the finally block.
Activity
changed the title
[-]Trino offline store leaks temporary entity tables (no cleanup)[/-] [+]`TrinoOfflineStoreConfig` does not cleanup temporary tables[/+] on Apr 21, 2026changed the title
[-]`TrinoOfflineStoreConfig` does not cleanup temporary tables[/-] [+]`TrinoOfflineStore` does not cleanup temporary tables[/+] on Apr 21, 2026added 2 commits that reference this issue
on May 14, 2026This issue will close once commit 231e03a is merged into the 'master' branch.231e03a This issue will close once commit d22bb4a is merged into the 'master' branch.d22bb4a added 3 commits that reference this issue
on May 14, 2026This issue will close once commit 8d277c1 is merged into the 'master' branch.8d277c1 This issue will close once commit 317adfa is merged into the 'master' branch.317adfa This issue will close once commit d86b13d is merged into the 'master' branch.d86b13d added 2 commits that reference this issue
on May 21, 2026This issue will close once commit cae7a39 is merged into the 'master' branch.cae7a39 This issue will close once commit 78fcd72 is merged into the 'master' branch.78fcd72 added a commit that references this issue
on May 23, 2026This issue will close once commit 5f1fa0d is merged into the 'master' branch.5f1fa0d
Metadata
Metadata
Development
No branches or pull requestsIssue actions