Skip to content

Conversation

@Lee-W
Copy link
Member

@Lee-W Lee-W commented Nov 7, 2025

Why

I misundertood Asset.extra and AssetEvent.extra back to the time we implement this AssetAlias feature

Closes: #58146

What

  • Preserve the Asset.extra information when AssetAlias is used. This also works when AssetRef(name=...) or AssetRef(uri=...) is used to reference an existing Asset with extra set.
    • Extend AssetAliasEvent to take dest_asset_extra
    • Extend _resolve_asset_ref to return tuple[AssetUniqueKey, dict[str, JsonValue]]

related: #55200


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@Lee-W Lee-W self-assigned this Nov 8, 2025
@Lee-W Lee-W added the area:data-aware-scheduling assets, datasets, AIP-48 label Nov 8, 2025
@Lee-W Lee-W force-pushed the fix-asset-alias-asset-extra branch 2 times, most recently from 77c88c4 to 51160d0 Compare November 13, 2025 10:45
@Lee-W Lee-W marked this pull request as ready for review November 13, 2025 10:57
@Lee-W Lee-W changed the title fix(asset-alias): fix asset extra missing fix(asset-alias): Preserve Asset.extra when using AssetAlias Nov 13, 2025
@Lee-W Lee-W requested a review from uranusjr November 13, 2025 10:59
@Lee-W Lee-W added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Nov 14, 2025
@Lee-W Lee-W force-pushed the fix-asset-alias-asset-extra branch 4 times, most recently from e7f2ac0 to 219f1e4 Compare November 17, 2025 10:53
@Lee-W Lee-W added this to the Airflow 3.1.4 milestone Nov 17, 2025
@Lee-W Lee-W force-pushed the fix-asset-alias-asset-extra branch from 219f1e4 to 6824b86 Compare November 25, 2025 08:58
Copy link
Member

@uranusjr uranusjr left a comment

Choose a reason for hiding this comment

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

Let’s create an issue to track the documentation change mentioned above.

@Lee-W
Copy link
Member Author

Lee-W commented Nov 26, 2025

Yep, added the issue

@Lee-W Lee-W merged commit 8d121e1 into apache:main Nov 26, 2025
84 checks passed
@Lee-W Lee-W deleted the fix-asset-alias-asset-extra branch November 26, 2025 08:41
github-actions bot pushed a commit that referenced this pull request Nov 26, 2025
…tAlias` (#58038)

(cherry picked from commit 8d121e1)

Co-authored-by: Wei Lee <[email protected]>
@github-actions
Copy link

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

Lee-W added a commit to astronomer/airflow that referenced this pull request Nov 26, 2025
Lee-W added a commit to astronomer/airflow that referenced this pull request Nov 26, 2025
github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Nov 26, 2025
Lee-W added a commit that referenced this pull request Nov 26, 2025
ephraimbuddy pushed a commit that referenced this pull request Dec 3, 2025
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:data-aware-scheduling assets, datasets, AIP-48 area:serialization area:task-sdk backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Asset extra metadata not persisted: extra field always empty via API/DB for emitted asset alias events

2 participants