Skip to content

feat: Add DAG versioning information to OpenLineage events #48741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

kacpermuda
Copy link
Contributor

@kacpermuda kacpermuda commented Apr 3, 2025

Dag versioning is the new feature in AF3. We should adjust OpenLineage event to have some information about it. For now adding this in the airflow facet, that has other dag_run and task_instance attributes.

Tested this on AF2, AF3 with versioning and AF3 without versioning.


^ 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.

@kacpermuda kacpermuda force-pushed the ol-add-dagrun-version branch 7 times, most recently from c3740ae to 785600e Compare April 9, 2025 12:26
@kacpermuda kacpermuda marked this pull request as ready for review April 9, 2025 12:27
@kacpermuda kacpermuda requested a review from mobuchowski as a code owner April 9, 2025 12:27
@kacpermuda kacpermuda marked this pull request as draft April 9, 2025 12:58
@kacpermuda kacpermuda force-pushed the ol-add-dagrun-version branch from 785600e to fe701db Compare April 10, 2025 11:39
@kacpermuda kacpermuda marked this pull request as ready for review April 10, 2025 11:39
@kacpermuda kacpermuda force-pushed the ol-add-dagrun-version branch from fe701db to ae59d8d Compare April 17, 2025 13:10
Copy link
Contributor

@mobuchowski mobuchowski left a comment

Choose a reason for hiding this comment

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

Looks good with one nit: maybe add listener test for it?

@mobuchowski mobuchowski merged commit ab28a8b into apache:main Apr 24, 2025
67 checks passed
@kacpermuda kacpermuda deleted the ol-add-dagrun-version branch April 24, 2025 10:03
prabhusneha pushed a commit to astronomer/airflow that referenced this pull request Apr 25, 2025
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.

2 participants