Skip to content

Commit

Permalink
Update airflow/providers/openlineage/utils/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kacper Muda <[email protected]>
  • Loading branch information
anandhimurali and kacpermuda authored May 21, 2024
1 parent 79a6b16 commit 421e0fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions airflow/providers/openlineage/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,12 @@ def get_custom_facets(task_instance: TaskInstance | None = None) -> dict[str, An
duplicate_facet_keys = [facet_key for facet_key in facet.keys() if facet_key in custom_facets]
if duplicate_facet_keys:
log.warning(
"Got duplicate facets key(s), `%s` from `%s`, will ignore it.",
"Duplicate OpenLineage custom facets key(s) found: `%s` from function `%s`.",
", ".join(duplicate_facet_keys),
custom_facet_func,
)
else:
log.info(f"Appending custom facets from {custom_facet_func}.")
custom_facets.update(facet)
log.debug("Adding OpenLineage custom facet with key(s): `%s` from function `%s`.", tuple(facet), custom_facet_func)
custom_facets.update(facet)
return custom_facets


Expand Down

0 comments on commit 421e0fe

Please sign in to comment.