Skip to content
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

[Bug] apply_meta_as_tags macro does not work with dbt<1.1.0 #22

Closed
ogr003 opened this issue Nov 14, 2022 · 4 comments
Closed

[Bug] apply_meta_as_tags macro does not work with dbt<1.1.0 #22

ogr003 opened this issue Nov 14, 2022 · 4 comments

Comments

@ogr003
Copy link

ogr003 commented Nov 14, 2022

Current behavior

Due to dbt-labs/dbt-core#4459, the res.node.meta node is not populated, meaning that no database tags are added by the apply_meta_as_tags macro.

Expected behavior

Should identify all models that has populated the database_tags meta field.

Environment

dbt: 1.0.1

Additional context

The res.node.config.meta field looks to be populated in dbt==1.0.1, so a suggested approach could be to use this instead. Alternatively, the dbt version constraint could be updated to dbt>=1.1.0, when the issue was resolved.

@MartinGuindon
Copy link
Collaborator

@jamesweakley Do you want to take a look?

@jamesweakley
Copy link
Contributor

@MartinGuindon yes I’ll take a look

jamesweakley added a commit to omnata-labs/dbt-snowflake-utils that referenced this issue Nov 15, 2022
@jamesweakley
Copy link
Contributor

@ogr003 thanks for reporting the issue and also pointing out the solution!

I've opened a PR for this.

@MartinGuindon
Copy link
Collaborator

Fixed in release 0.4.1. Thanks @jamesweakley !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants