Skip to content

openlineage: fix / add some task attributes in AirflowRunFacet - #40725

Merged
mobuchowski merged 3 commits into
apache:mainfrom
kacpermuda:ol-fix-some-task-attributes
Jul 12, 2024
Merged

openlineage: fix / add some task attributes in AirflowRunFacet#40725
mobuchowski merged 3 commits into
apache:mainfrom
kacpermuda:ol-fix-some-task-attributes

Conversation

@kacpermuda

Copy link
Copy Markdown
Collaborator

We only include operator name in TaskInfo, this PR adds the full path to the operator. It should be easier to identify them in case there are multiple operators with the same name.

Also, inlets and outlets added in #40371 only make sense for Datasets so this PR only takes those into consideration. All other lineage entities (File, Table) are already translated into input / output datasets here.

When I'm at it, I'm extending the translation from Table with DocumentationDatasetFacet.


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

Comment threadtests/providers/openlineage/extractors/test_manager.py Outdated
@kacpermuda
kacpermudaforce-pushed the ol-fix-some-task-attributes branch from fc5f8dd to ac702e4CompareJuly 11, 2024 11:43
…owRunFacet
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
@kacpermuda
kacpermudaforce-pushed the ol-fix-some-task-attributes branch from ac702e4 to e994960CompareJuly 12, 2024 12:06
@mobuchowski
mobuchowski merged commit ea18121 into apache:mainJul 12, 2024
@kacpermuda
kacpermuda deleted the ol-fix-some-task-attributes branch July 12, 2024 14:06
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
…e#40725)
* openlineage: Only include Airflow Datasets as inlets/outlets in AirflowRunFacet
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
* openlineage: Add full path to operator in AirflowRunFacet
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
* openlineage: Add documentation facet when translating from Table entity
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
---------
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
Sign up for freeto 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

@kacpermuda@mobuchowski