Fix mlflow.spark.load_model to handle Unity Catalog Volumes paths correctly#18672
Merged
harupy merged 2 commits intomlflow:masterfrom Nov 5, 2025
Merged
Fix mlflow.spark.load_model to handle Unity Catalog Volumes paths correctly#18672harupy merged 2 commits intomlflow:masterfrom
mlflow.spark.load_model to handle Unity Catalog Volumes paths correctly#18672harupy merged 2 commits intomlflow:masterfrom
Conversation
11 tasks
Contributor
|
Documentation preview for 87fd660 is available at: More info
|
…ction Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
ae290ee to
06a52c0
Compare
mlflow.spark.load_model to not prepend dbfs:/mlflow.spark.load_model to not prepend dbfs:/ for UC volumes
harupy
commented
Nov 5, 2025
Member
Author
|
/resolve ✅ Workflow completed successfully. Claude OutputSummaryI've successfully resolved the PR review comment! Here's what was done: PR Context
Review Comment AddressedFile: Changes MadeUpdated the docstring for the Before: Returns:
A DBFS FUSE-style path, e.g. "/dbfs/my-directory"After: Returns:
A DBFS FUSE-style path, e.g. "/dbfs/my-directory". For UC Volumes paths
(e.g., "/Volumes/..."), returns the path unchanged.Commit Details
The change clarifies the function's behavior for UC Volumes paths, which was added in this PR but not reflected in the documentation. |
🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com>
mlflow.spark.load_model to not prepend dbfs:/ for UC volumesmlflow.spark.load_model to handle Unity Catalog Volumes paths correctly
B-Step62
pushed a commit
to B-Step62/mlflow
that referenced
this pull request
Nov 7, 2025
…orrectly (mlflow#18672) Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
B-Step62
pushed a commit
to B-Step62/mlflow
that referenced
this pull request
Nov 11, 2025
…orrectly (mlflow#18672) Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
B-Step62
pushed a commit
that referenced
this pull request
Nov 11, 2025
…orrectly (#18672) Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
serena-ruan
pushed a commit
that referenced
this pull request
Nov 27, 2025
…orrectly (#18672) Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
29 tasks
serena-ruan
pushed a commit
to serena-ruan/mlflow
that referenced
this pull request
Dec 1, 2025
…orrectly (mlflow#18672) Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
29 tasks
B-Step62
pushed a commit
to B-Step62/mlflow
that referenced
this pull request
Dec 5, 2025
…orrectly (mlflow#18672) Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
B-Step62
pushed a commit
that referenced
this pull request
Dec 5, 2025
…orrectly (#18672) Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: mlflow-app[bot] <mlflow-app[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠 DevTools 🛠
Install mlflow from this PR
For Databricks, use the following command:
Related Issues/PRs
Fix #18668
What changes are proposed in this pull request?
This PR fixes a bug where
mlflow.spark.load_modelincorrectly prepends/dbfs/to Unity Catalog Volumes paths when usingdfs_tmpdiron Databricks clusters with Dedicated access mode.The issue occurs because
dbfs_hdfs_uri_to_fuse_path()was converting all paths to DBFS FUSE paths (e.g.,/dbfs/...), but UC Volumes paths (e.g.,/Volumes/...) should not be converted as they don't use the/dbfsprefix.Changes:
dbfs_hdfs_uri_to_fuse_path()inmlflow/utils/uri.pyto detect UC Volumes paths and return them unchangedThis brings
load_modelbehavior in line withsave_model, which already supports UC Volumes asdfs_tmpdiron Dedicated clusters.How is this PR tested?
The fix was manually tested on Databricks Runtime 17.3 LTS ML with a Dedicated cluster using UC Volumes as
dfs_tmpdir.Does this PR require documentation update?
Release Notes
Is this a user-facing change?
Fixed
mlflow.spark.load_modelto properly handle Unity Catalog Volumes paths when usingdfs_tmpdiron Databricks clusters with Dedicated access mode. Previously, the function incorrectly prepended/dbfs/to UC Volumes paths, causing I/O errors.What component(s), interfaces, languages, and integrations does this PR affect?
Components
area/models: MLmodel format, model serialization/deserialization, flavorsarea/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registryarea/scoring: MLflow Model server, model deployment tools, Spark UDFsHow should the PR be classified in the release notes? Choose one:
rn/bug-fix- A user-facing bug fix worth mentioning in the release notesShould this PR be included in the next patch release?