Skip to content

Fix mltable load of registered data asset: restore DataVersionEntity.additional_properties - #48275

Merged
saanikaguptamicrosoft merged 1 commit into
Azure:mainfrom
saanikaguptamicrosoft:saanika/prod-regression-fix
Jul 28, 2026
Merged

Fix mltable load of registered data asset: restore DataVersionEntity.additional_properties#48275
saanikaguptamicrosoft merged 1 commit into
Azure:mainfrom
saanikaguptamicrosoft:saanika/prod-regression-fix

Conversation

@saanikaguptamicrosoft

@saanikaguptamicrosoft saanikaguptamicrosoft commented Jul 27, 2026

Copy link
Copy Markdown
Member

Notes

  • Prod regression from: Azure AI ML to TSP #45389
    The dataset_dataplane TypeSpec (hybrid) migration (Azure AI ML to TSP #45389) dropped the msrest additional_properties attribute from DataVersionEntity. The mltable package's local data-asset resolution path (MLClient.jobs._dataset_dataplane_operations._operation.get) reads additional_properties['isV2'|'legacyDataflow'], so loading a registered MLTable data asset via mltable.load('azureml://.../data//versions/') raised AttributeError. Restored the attribute as a regeneration-safe compat shim in models/_patch.py returning the un-modeled wire keys. Wire contract unchanged.

Testing

  • Before:
image image

The failing two mltable notebook samples are succeeding now

image

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

…additional_properties

The dataset_dataplane TypeSpec (hybrid) migration (Azure#45389) dropped the msrest additional_properties attribute from DataVersionEntity. The mltable package's local data-asset resolution path (MLClient.jobs._dataset_dataplane_operations._operation.get) reads additional_properties['isV2'|'legacyDataflow'], so loading a registered MLTable data asset via mltable.load('azureml://.../data/<name>/versions/<v>') raised AttributeError. Restored the attribute as a regeneration-safe compat shim in models/_patch.py returning the un-modeled wire keys. Wire contract unchanged.
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@saanikaguptamicrosoft saanikaguptamicrosoft changed the title Fix mltable load of registered data asset: restore DataVersionEntity.… Fix mltable load of registered data asset: restore DataVersionEntity.additional_properties Jul 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Restores MLTable loading compatibility after the dataset dataplane TypeSpec migration.

Changes:

  • Adds an additional_properties compatibility shim.
  • Adds regression tests for modeled and unmodeled fields.
  • Documents the fix in the changelog.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
models/_patch.py Restores access to unmodeled wire properties.
test_dataset_dataplane_additional_properties.py Tests compatibility behavior and edge cases.
CHANGELOG.md Records the MLTable loading fix.

@saanikaguptamicrosoft
saanikaguptamicrosoft merged commit 714185d into Azure:main Jul 28, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants