Repository navigation
[FIX] MLflow 3.x connector fails to extract features due to removed tag - #31920
zhang-arvin wants to merge 1 commit into
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Thanks for the review @gitar-bot! Fixed both issues:
Force-pushed the fix. |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ Approved 2 resolved / 2 findingsAdds an MLflow 3.x feature extraction fallback using model-info signatures, addressing the unreachable fallback and column type comparison findings. Changes are approved. ✅ 2 resolved✅ Bug: col.type == "string" never matches; all features numerical
✅ Bug: MLflow 3.x fallback unreachable when run has no tags
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
@open-metadata/developers Could you please add the |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
| if not latest_props: | ||
| reason = f"Cannot find the run ID properties for {run_id}" | ||
| logger.warning(reason) | ||
| self.status.warning(model_name, reason) | ||
| return None |
There was a problem hiding this comment.
History miss bypasses fallback
When the legacy history tag contains no entry for the selected run ID, this branch returns before _get_ml_features_from_model_info runs, causing mlFeatures to remain unset despite an available model source and MLmodel signature.
| if not latest_props: | |
| reason = f"Cannot find the run ID properties for {run_id}" | |
| logger.warning(reason) | |
| self.status.warning(model_name, reason) | |
| return None | |
| if not latest_props: | |
| reason = f"Cannot find the run ID properties for {run_id}" | |
| logger.warning(reason) | |
| self.status.warning(model_name, reason) |
fe46ef9 to
4d497f4
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Fixed the Python checkstyle issue — replaced the |
|
Too many files changed for review (3000 files, 100 file limit). |
Describe your changes
Fix MLflow connector failing to extract model features (mlFeatures) on MLflow 3.x due to the removed
mlflow.log-model.historytag.Changes
data.tags.get("mlflow.log-model.history")instead of direct key access to avoidKeyErroron MLflow 3.xmlflow.models.get_model_info()to read the model signature directly from the MLmodel fileColSpecobjects in the model's input schemaRelated issue
Closes #31889
Type of change
Greptile Summary
The PR adds an MLflow 3.x feature-extraction fallback that reads model signatures from model info when the legacy history tag is unavailable.
ColSpecinputs into OpenMetadata ML features.Confidence Score: 4/5
The PR is not yet safe to merge because a present legacy history tag without the selected run ID still prevents the new fallback from extracting features.
The empty-tags path now reaches model info, but the retained early return for an unmatched history entry leaves the previously reported missing-feature failure reachable.
Files Needing Attention: ingestion/src/metadata/ingestion/source/mlmodel/mlflow/metadata.py
Important Files Changed
Reviews (3): Last reviewed commit: "Merge branch 'main' into fix/mlflow-3x-f..." | Re-trigger Greptile