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

use named constants to define columns containing IDs and generic values #678

Merged
merged 12 commits into from
Feb 21, 2024

Conversation

motus
Copy link
Member

@motus motus commented Feb 14, 2024

Also, make objectives.optimization_target use the new _LEN_ID constant to make sure it is not too long to be used as a primary key in MySQL (issue #677)

Closes #677

@motus motus requested a review from a team as a code owner February 14, 2024 22:17
@motus motus self-assigned this Feb 14, 2024
@motus motus added bug Something isn't working ready for review Ready for review mlos-bench labels Feb 14, 2024
@motus motus enabled auto-merge (squash) February 14, 2024 22:34
@motus
Copy link
Member Author

motus commented Feb 15, 2024

bumped up the ID and value lengths to 512 and 1024 correspondingly. That's an increase from our current 255/255 limit that would still allow us to use optimization_target in a primary key on MySQL

@motus motus merged commit e7a9c44 into microsoft:main Feb 21, 2024
12 checks passed
@motus motus deleted the sergiym/db/len_const branch February 21, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mlos-bench ready for review Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

objectives.optimization_target column is too long to be in the primary key for MySQL
2 participants