You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Lee-W (via GitHub)" <gi...@apache.org> on 2026/02/10 13:06:48 UTC
[PR] feat: add partition_key to DagRunAssetReference [airflow]
Lee-W opened a new pull request, #61725:
URL: https://github.com/apache/airflow/pull/61725
<!--
Thank you for contributing!
Please provide above a brief description of the changes made in this pull request.
Write a good git commit message following this guide: http://chris.beams.io/posts/git-commit/
Please make sure that your code changes are covered with tests.
And in case of new features or big changes remember to adjust the documentation.
Feel free to ping (in general) for the review if you do not see reaction for a few days
(72 Hours is the minimum reaction time you can expect from volunteers) - we sometimes miss notifications.
In case of an existing issue, reference it using one of the following:
* closes: #ISSUE
* related: #ISSUE
-->
---
##### Was generative AI tooling used to co-author this PR?
<!--
If generative AI tooling has been used in the process of authoring this PR, please
change below checkbox to `[X]` followed by the name of the tool, uncomment the "Generated-by".
-->
- [ ] Yes (please specify the tool below)
<!--
Generated-by: [Tool Name] following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
-->
---
* Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)** for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
* For fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed.
* When adding dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
* For significant user-facing changes create newsfragment: `{pr_number}.significant.rst` or `{issue_number}.significant.rst`, in [airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: add partition_key to DagRunAssetReference [airflow]
Posted by "jason810496 (via GitHub)" <gi...@apache.org>.
jason810496 commented on code in PR #61725:
URL: https://github.com/apache/airflow/pull/61725#discussion_r2789050333
##########
airflow-core/src/airflow/api_fastapi/execution_api/datamodels/asset_event.py:
##########
@@ -36,6 +36,7 @@ class DagRunAssetReference(StrictBaseModel):
state: str
data_interval_start: datetime | None
data_interval_end: datetime | None
+ partition_key: str | None
Review Comment:
Do we need to add migration file here as well?
https://github.com/apache/airflow/pull/61301/changes#diff-0a23579a81fc04c7f9c8ba7a8dab85a9957bca1c66976931e47ad17abbb75ba8R35
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: add partition_key to DagRunAssetReference [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on PR #61725:
URL: https://github.com/apache/airflow/pull/61725#issuecomment-3890234276
Hey @jason810496 , i tried to add it. could you please take another look? Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: add partition_key to DagRunAssetReference [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on PR #61725:
URL: https://github.com/apache/airflow/pull/61725#issuecomment-3888181401
yep, will add it today
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: add partition_key to DagRunAssetReference [airflow]
Posted by "jason810496 (via GitHub)" <gi...@apache.org>.
jason810496 commented on PR #61725:
URL: https://github.com/apache/airflow/pull/61725#issuecomment-3890270805
> Hey @jason810496 , i tried to add it. could you please take another look? Thanks!
Sure! I will take a look after dinner.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: add partition_key to DagRunAssetReference [airflow]
Posted by "jason810496 (via GitHub)" <gi...@apache.org>.
jason810496 merged PR #61725:
URL: https://github.com/apache/airflow/pull/61725
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: add partition_key to DagRunAssetReference [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #61725:
URL: https://github.com/apache/airflow/pull/61725#discussion_r2793491094
##########
airflow-core/src/airflow/api_fastapi/execution_api/datamodels/asset_event.py:
##########
@@ -36,6 +36,7 @@ class DagRunAssetReference(StrictBaseModel):
state: str
data_interval_start: datetime | None
data_interval_end: datetime | None
+ partition_key: str | None
Review Comment:
Yes we probably need a cadwyn migration to make sure task sdk is backward compatible in all 4 ways scenarios.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: add partition_key to DagRunAssetReference [airflow]
Posted by "jason810496 (via GitHub)" <gi...@apache.org>.
jason810496 commented on code in PR #61725:
URL: https://github.com/apache/airflow/pull/61725#discussion_r2789050333
##########
airflow-core/src/airflow/api_fastapi/execution_api/datamodels/asset_event.py:
##########
@@ -36,6 +36,7 @@ class DagRunAssetReference(StrictBaseModel):
state: str
data_interval_start: datetime | None
data_interval_end: datetime | None
+ partition_key: str | None
Review Comment:
Do we need to add migration file for `DagRunAssetReference` as well?
https://github.com/apache/airflow/pull/61301/changes#diff-0a23579a81fc04c7f9c8ba7a8dab85a9957bca1c66976931e47ad17abbb75ba8R35
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org