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
feast apply after feast teardown does not recreate the sqlite online store tables #7227
After feast teardown, running feast apply again recreates the online store tables, the same as the first apply did.
Current Behavior
The second feast apply prints "No changes to infrastructure". data/online_store.db is left as an empty file with no tables, and feast materialize-incremental then fails:
sqlite3.OperationalError: no such table: proj_driver_hourly_stats_fresh
feast teardown drops the sqlite tables and deletes the project from the file registry. However, the registry keeps the project's infra objects, so the infra diff on the next apply finds nothing to create. The SQL registry isn't affected because its delete_project also removes the managed infra row.
This is easy to hit with the feast init template, since its test_workflow.py ends with feast teardown.
Steps to reproduce
feast init proj && cd proj/feature_repo
feast apply
feast teardown
feast apply # "No changes to infrastructure"; online_store.db has no tables
feast materialize-incremental $(date -u +%Y-%m-%dT%H:%M:%S) # no such table
Specifications
Version: 0.68.1.dev80+ga291a0f12 (master)
Platform: macOS, Python 3.12
Subsystem: file registry, sqlite online store, local provider
Possible Solution
Have Registry.delete_project (the file registry) drop the deleted project's infra objects, as the SQL registry does. I have a fix with tests and will open a PR.
Found with help from Claude Code; I reproduced it myself.
Activity