feast icon indicating copy to clipboard operation
feast copied to clipboard

Entities are never deleted from the Registry

Open achals opened this issue 4 years ago • 4 comments

Expected Behavior

When an entity is removed from the feature repo, it should be removed from the feature registry.

Current Behavior

Entities are only added, never removed from the Registry. This is a storage leak of sorts.

Steps to reproduce

  • feast init
  • In the new feature repo, feast apply
  • Add a new entity in the feature repo. feast apply.
  • Remove the new entity from the feature repo. feast apply.
  • feast registry-dump will have deleted entity, even though no feature tables or views depend on it.

Possible Solution

in repo_operations.py#apply_total, we need to keep track of the entities to delete, add an API in the feature store to delete entites, and call this new API.

achals avatar Jul 07 '21 06:07 achals

Hey @achals, is this still open? Becaus, I can´t reproduce this in Feast SDK Version: "feast 0.11.1.dev49+gbf557bcb".

amommendes avatar Jul 26 '21 13:07 amommendes

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 25 '21 21:11 stale[bot]

This issue is still relevant

dejavu284 avatar Sep 25 '24 09:09 dejavu284

Oh we'll take a look at this! Thanks for reopening @tokoko !

franciscojavierarceo avatar Sep 25 '24 10:09 franciscojavierarceo

Hello @dejavu284 I added, applied and then deleted an Entity with

feast version
Feast SDK Version: "0.1.dev3709+ge5527ad"

followed by

feast entities list
feast registry-dump

The deleted entity was not listed after deletion.

This issue is still relevant

Could you share how to reproduce the issue? Perhaps it was fixed recently.

meyudi avatar Jan 11 '25 14:01 meyudi

@meyudi what version of feast are you using? That looks like a pretty old one.

franciscojavierarceo avatar Jan 12 '25 13:01 franciscojavierarceo

@franciscojavierarceo I am using

Feast SDK Version: "0.1.dev3709+ge5527ad"

meyudi avatar Feb 01 '25 10:02 meyudi

are you building that from source? or are you pip installing it?

franciscojavierarceo avatar Feb 01 '25 10:02 franciscojavierarceo

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 27 '25 01:06 stale[bot]