Skip to content

Commit

Permalink
Update to MLflow 2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 1, 2023
1 parent 0718a12 commit 9da5b07
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## in progress
- Update to MLflow 2.8.0

## 2023-11-01 v2.7.1
- Fix uniqueness constraint with `SqlRegisteredModel.name`. Thanks, @andnig.
Expand Down
1 change: 1 addition & 0 deletions mlflow_cratedb/adapter/ddl/cratedb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ CREATE TABLE IF NOT EXISTS "model_versions" (
"user_id" TEXT,
"current_stage" TEXT,
"source" TEXT,
"storage_location" TEXT,
"run_id" TEXT,
"run_link" TEXT,
"status" TEXT,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ dependencies = [
"crash",
"crate[sqlalchemy]>=0.34",
"cratedb-toolkit==0.0.1",
"mlflow==2.7.1",
"mlflow==2.8",
"sqlparse<0.5",
]

Expand Down
10 changes: 5 additions & 5 deletions tests/test_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,13 +1128,13 @@ def test_log_null_param(self):
def test_log_param_max_length_value(self):
run = self._run_factory()
tkey = "blahmetric"
tval = "x" * 500
tval = "x" * 6000
param = entities.Param(tkey, tval)
self.store.log_param(run.info.run_id, param)
run = self.store.get_run(run.info.run_id)
assert run.data.params[tkey] == str(tval)
with pytest.raises(MlflowException, match="exceeded length"):
self.store.log_param(run.info.run_id, entities.Param(tkey, "x" * 1000))
self.store.log_param(run.info.run_id, entities.Param(tkey, "x" * 6001))

@pytest.mark.skip("[FIXME] ColumnValidationException"
"[Validation failed for experiment_id: Updating a primary key is not supported]")
Expand Down Expand Up @@ -2744,11 +2744,11 @@ def test_log_batch_null_metrics(self):

def test_log_batch_params_max_length_value(self):
run = self._run_factory()
param_entities = [Param("long param", "x" * 500), Param("short param", "xyz")]
expected_param_entities = [Param("long param", "x" * 500), Param("short param", "xyz")]
param_entities = [Param("long param", "x" * 6000), Param("short param", "xyz")]
expected_param_entities = [Param("long param", "x" * 6000), Param("short param", "xyz")]
self.store.log_batch(run.info.run_id, [], param_entities, [])
self._verify_logged(self.store, run.info.run_id, [], expected_param_entities, [])
param_entities = [Param("long param", "x" * 1000)]
param_entities = [Param("long param", "x" * 6001)]
with pytest.raises(MlflowException, match="exceeded length"):
self.store.log_batch(run.info.run_id, [], param_entities, [])

Expand Down

0 comments on commit 9da5b07

Please sign in to comment.