Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A user reported the following issue while using Cosmos 1.3.1: ``` def _should_include_node(self, node_id: str, node: DbtNode) -> bool: "Checks if a single node should be included. Only runs once per node with caching." if node_id in self.visited_nodes: return node_id in self.selected_nodes self.visited_nodes.add(node_id) if node.resource_type == DbtResourceType.TEST: > node.tags = getattr(self.nodes.get(node.depends_on[0]), "tags", []) E IndexError: list index out of range cosmos/dbt/selector.py:298: IndexError ``` In order to reproduce this issue, it was necessary to add a tag-based select statement. Based on the error, it seems their dbt project has a test without `depends_on`. This CR adds support to this use case. Closes: #813
- Loading branch information