Closed andnig closed 1 year ago
Dear Andreas,
thanks a stack for reporting this flaw. We think is has been fixed with GH-47 / 72b80689120, which is already part of v2.7.1. Can you validate that it works for you now?
With kind regards, Andreas.
Happy to confirm that it works with the latest mlflow cratedb. Kudos for the timely fix.
Issue: We are not able to update models using CrateDB as MLflow backend.
With MLflow, when using "log_model" to save models in the tracking backend. Calling log_model twice with the same model name creates a new model version. However, when using crate as backend, calling log_model twice with the same model name results in
Reason: mlflow expects uniqueness per model name, as defined here: https://github.com/mlflow/mlflow/blob/c24f4a88b7642351d26914606a0868ec12b453e9/mlflow/store/model_registry/dbmodels/models.py#L28C1-L29C1
Proposal: Add uniqueness polyfill to SqlRegisteredModel, similar to https://github.com/crate-workbench/mlflow-cratedb/blob/7f31a20d5a7ff17ea58e0bbcbed0bc0a3942194d/mlflow_cratedb/patch/mlflow/model.py#L6
Repro steps:
Have local crate running on localhost:4200 with default creds.
Create a env with Python 3.10
Install deps
Run this script twice. The second time, it will fail.