Uh oh!
There was an error while loading. Please reload this page.
Expose upstream partition key on triggering asset events - #69115
Merged
Lee-W merged 1 commit intoJun 29, 2026
Merged
Conversation
pierrejeambrun
approved these changes
Jun 29, 2026
amoghrajesh
approved these changes
Jun 29, 2026
goransh-walia
commented
Jun 29, 2026
Nice clean implementation. One minor thought: adding a docstring would help future contributors. But overall this looks solid. |
Add partition_key to the consumed-asset-event reference so a downstream task can read which upstream partitions fed its run via triggering_asset_events (and dag_run.consumed_asset_events). The field is stripped for execution API clients older than 2026-04-06.
Lee-Wforce-pushed
the
expose-partition-key-on-triggering-asset-events
branch
from
June 29, 2026 08:47
3b3b232 to
fa8edf0CompareUh oh!
There was an error while loading. Please reload this page.
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
github-actionsBot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Jun 29, 2026
…pache#69115) (cherry picked from commit 1dcdcd7) Co-authored-by: Wei Lee <weilee.rx@gmail.com>
aws-airflow-bot pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Jun 29, 2026
…pache#69115) (cherry picked from commit 1dcdcd7) Co-authored-by: Wei Lee <weilee.rx@gmail.com>
vatsrahul1001 pushed a commit
that referenced
this pull request
Jun 29, 2026
karenbraganz pushed a commit
to karenbraganz/airflow
that referenced
this pull request
Jun 30, 2026
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 freeto 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.
Why
triggering_asset_events(anddag_run.consumed_asset_events) exposed each event reference without apartition_key.inlet_events(AssetEventResponse) already carriespartition_keyunder the same unreleased feature, so the consumed-event reference was just an incomplete rollout of it.What
partition_keytoAssetEventDagRunReference(core datamodel) and regenerate the task-sdk_generated.pyfrom it.PartitionedAssetKeyLogregardless of mapper kind, so rollup (N→1, multiple events), fan-out (1→N, single event), and identity (1→1, single event) all populate it. Authors read it run-scoped, with no inlet wiring or DB lookup:[e.partition_key for e in triggering_asset_events[asset]].Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.