mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-09 16:03:31 +00:00
fix(ingest): remove duplication of tags (#8532)
This commit is contained in:
parent
0593e23558
commit
09ef6e080c
@ -75,7 +75,11 @@ class DatasetTagsTransformer(DatasetTransformer, metaclass=ABCMeta):
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Check if user want to keep existing tags"""
|
"""Check if user want to keep existing tags"""
|
||||||
if in_global_tags_aspect is not None and config.replace_existing is False:
|
if in_global_tags_aspect is not None and config.replace_existing is False:
|
||||||
out_global_tags_aspect.tags.extend(in_global_tags_aspect.tags)
|
tags_seen = set()
|
||||||
|
for item in in_global_tags_aspect.tags:
|
||||||
|
if item.tag not in tags_seen:
|
||||||
|
out_global_tags_aspect.tags.append(item)
|
||||||
|
tags_seen.add(item.tag)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_result_semantics(
|
def get_result_semantics(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user