Expected Behavior
Calling feast apply multiple time on the same feature repo with MySQL online store should not throw an error.
Current Behavior
Calling feast apply attempts to create table index even if the index exists. It throw MySQL duplicate key error if the index already exists.
Steps to reproduce
- Add MySQL online store to the feature repo
- Calling
feast apply first time will create table(s) and index(es) on the MySQL database.
- Calling
feast apply again will throw duplicate key error.
Specifications
- Version: master branch
- Platform:
- Subsystem:
Possible Solution
Add a check to the existence of the index before index creation