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

[Model Monitoring] Fix SQL store with multiple filter criteria #5629

Merged
merged 22 commits into from
May 27, 2024

Conversation

jond01
Copy link
Member

@jond01 jond01 commented May 26, 2024

Fixes ML-6541.

Add a test that fails before the fix introduced here: test_unique_last_analyzed_per_app.
The bug comes from the fact that sqlalchemy.sql.text cannot combine by itself multiple conditions.

@assaf758 assaf758 requested a review from davesh0812 May 27, 2024 06:42
Copy link
Contributor

@davesh0812 davesh0812 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good!
Few extra comments.

mlrun/model_monitoring/db/stores/sqldb/sql_store.py Outdated Show resolved Hide resolved
mlrun/model_monitoring/db/stores/sqldb/sql_store.py Outdated Show resolved Hide resolved
@jond01 jond01 requested a review from davesh0812 May 27, 2024 13:32
Copy link
Contributor

@davesh0812 davesh0812 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
If it is not a big effort please add test for _delete_application_result and pass to it application_name - not mandatory for now.

@assaf758 assaf758 merged commit 76e658b into mlrun:development May 27, 2024
11 checks passed
@jond01 jond01 deleted the fix/mysql-last-analyzed branch May 27, 2024 14:29
rokatyy pushed a commit to rokatyy/mlrun that referenced this pull request May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants