Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurs when calling feast apply twice on MySQL online store #3906

Closed
gee-senbong opened this issue Jan 25, 2024 · 0 comments · Fixed by #3905
Closed

An error occurs when calling feast apply twice on MySQL online store #3906

gee-senbong opened this issue Jan 25, 2024 · 0 comments · Fixed by #3905

Comments

@gee-senbong
Copy link
Contributor

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

  1. Add MySQL online store to the feature repo
  2. Calling feast apply first time will create table(s) and index(es) on the MySQL database.
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant