-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LoadMode.CUSTOM cannot select tags #693
Comments
🤖 Hi @adammarples, Great to see you again! Thanks for bringing this to our attention. I'm diving into the issue you've raised and will get back to you with a detailed response soon. |
🤖 Hello @adammarples, it's great to see you again! I hope you're doing well. Thank you for bringing this to our attention. You're correct that the This is because the custom parser does not currently support parsing tags from the dbt project. It's a limitation of the custom parser and not a deliberate design decision to always return False for If you need to use tags in your dbt project with Cosmos, you might want to consider using a different load method that supports tags, such as In the tags=node_dict["tags"], In the tags=node_dict["tags"], On the other hand, the tags=[], This means that any tags associated with the models in the dbt project are not loaded when the I hope this clarifies the current behavior of the SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
@adammarples I just checked on the main branch, and the latest versions of Cosmos, both 1.2.5 and 1.3.0a2 should have this fixed: astronomer-cosmos/cosmos/dbt/graph.py Line 112 in 1734365
Could you upgrade and confirm if it works as expected, please? |
Hi @tatiana this is not a problem with DBT_LS but with load via custom parser astronomer-cosmos/cosmos/dbt/graph.py Line 314 in 2878d6a
|
🤖 Hi, @adammarples, I'm helping the Cosmos team manage their backlog and am marking this issue as stale. The issue you raised regarding the Could you please confirm if this issue is still relevant to the latest version of the Cosmos repository? If it is, please let the Cosmos team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your understanding and cooperation. |
HI @adammarples , please, could you confirm if this is still an issue in Cosmos 1.4? |
https://github.com/astronomer/astronomer-cosmos/blob/d28d3df7eacac74d0fbb016be70434bcc30c51be/cosmos/dbt/graph.py#L314C17-L314C25
load_via_custom_parser
hard codes DbtNode.tags attribute to be an empty listThis causes
_is_tags_subset
to return False every timebecause set(node.tags) is always empty.
The text was updated successfully, but these errors were encountered: