Skip to content

Commit

Permalink
fixed dbt tag name (#18273)
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarVO7 authored Oct 15, 2024
1 parent 7d91e12 commit e6705f2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,7 @@ def yield_dbt_tags(
for tag_name in dbt_tags_list
]
yield from get_ometa_tag_and_classification(
tags=[
tag_label.split(fqn.FQN_SEPARATOR)[1]
for tag_label in dbt_tag_labels
],
tags=[fqn.split(tag_label)[1] for tag_label in dbt_tag_labels],
classification_name=self.tag_classification_name,
tag_description="dbt Tags",
classification_description="dbt classification",
Expand Down
3 changes: 2 additions & 1 deletion ingestion/tests/unit/resources/datasets/manifest_v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
},
"tags": [
"model_tag_one",
"model_tag_two"
"model_tag_two",
"22.8.5.1"
],
"refs": [
[
Expand Down
14 changes: 14 additions & 0 deletions ingestion/tests/unit/test_dbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@
state="Suggested",
href=None,
),
TagLabel(
tagFQN='dbtTags."22.8.5.1"',
description=None,
source="Classification",
labelType="Automated",
state="Suggested",
href=None,
),
],
columns=[
Column(
Expand Down Expand Up @@ -426,6 +434,12 @@ def test_dbt_manifest_v8(self, get_tag_label, es_search_from_fqn, get_dbt_owner)
state=State.Suggested.value,
source=TagSource.Classification.value,
),
TagLabel(
tagFQN='dbtTags."22.8.5.1"',
labelType=LabelType.Automated.value,
state=State.Suggested.value,
source=TagSource.Classification.value,
),
]
self.execute_test(
MOCK_SAMPLE_MANIFEST_V8,
Expand Down

0 comments on commit e6705f2

Please sign in to comment.