-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openlineage: fix / add some task attributes in AirflowRunFacet (#40725)
* openlineage: Only include Airflow Datasets as inlets/outlets in AirflowRunFacet Signed-off-by: Kacper Muda <[email protected]> * openlineage: Add full path to operator in AirflowRunFacet Signed-off-by: Kacper Muda <[email protected]> * openlineage: Add documentation facet when translating from Table entity Signed-off-by: Kacper Muda <[email protected]> --------- Signed-off-by: Kacper Muda <[email protected]>
- Loading branch information
1 parent
24b5007
commit ea18121
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
|
||
import pytest | ||
from openlineage.client.facet import ( | ||
DocumentationDatasetFacet, | ||
OwnershipDatasetFacet, | ||
OwnershipDatasetFacetOwners, | ||
SchemaDatasetFacet, | ||
|
@@ -94,6 +95,7 @@ def test_convert_to_ol_dataset_from_table_with_columns_and_owners(): | |
User(email="[email protected]", last_name="Smith"), | ||
User(email="[email protected]"), | ||
], | ||
description="test description", | ||
) | ||
expected_facets = { | ||
"schema": SchemaDatasetFacet( | ||
|
@@ -118,6 +120,7 @@ def test_convert_to_ol_dataset_from_table_with_columns_and_owners(): | |
OwnershipDatasetFacetOwners(name="user:<[email protected]>", type=""), | ||
] | ||
), | ||
"documentation": DocumentationDatasetFacet(description="test description"), | ||
} | ||
result = ExtractorManager.convert_to_ol_dataset_from_table(table) | ||
assert result.namespace == "c1" | ||
|