From 807cd58993ec8b4f790a4912e7dcc42b44aa3a12 Mon Sep 17 00:00:00 2001 From: yoshimaru46 Date: Fri, 13 Dec 2024 05:23:45 +0900 Subject: [PATCH] Remove "tags:" prefix from model config selectors --- cosmos/dbt/graph.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cosmos/dbt/graph.py b/cosmos/dbt/graph.py index be37ec298..0fcfc8c44 100644 --- a/cosmos/dbt/graph.py +++ b/cosmos/dbt/graph.py @@ -654,6 +654,8 @@ def load_via_custom_parser(self) -> None: for model_name, model in models: config = {item.split(":")[0]: item.split(":")[-1] for item in model.config.config_selectors} tags = [selector for selector in model.config.config_selectors if selector.startswith("tags:")] + # Remove the "tags:" prefix + tags = [tag.split(":")[-1] for tag in tags] node = DbtNode( unique_id=f"{model.type.value}.{self.project.project_name}.{model_name}", resource_type=DbtResourceType(model.type.value),