-
Notifications
You must be signed in to change notification settings - Fork 97
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
fix: lf_inherited_tags null value #487
fix: lf_inherited_tags null value #487
Conversation
dbt/include/athena/macros/materializations/models/incremental/incremental.sql
Show resolved
Hide resolved
@svdimchenko seems that the PR introduces lf_inherited_tags as part of lf_tags_config, is that correct? if so this is a breacking config change that we should communicate in the next release. |
to be honest I thought it would be as it's represented here
and yes, we should mention that in release notes |
In the last 1.6.4 release, this
worked for me, also considering that we had a config.get('lf_inherited_tags)'... I like what you proposed better, because lf_inherited_tags is part of lf config. |
@svdimchenko could you update the readme too? Specifically here, we mention this:
but should be
|
sure, I've updated our readme file |
@dacreify could you please take a look here as well ? |
@nicor88 @svdimchenko Apologies just catching up here. I initially had |
@dacreify I don't know how the setup looks like for you, but can't something like this?
works for you? e.g. you put group of models with the same lf_inherited_tags under one folder? |
I use same setup and everything works OK. Are there any edge cases missed here @dacreify ? |
Here's the scenario we're trying to accomplish:
Here the model-level Per the DBT documentation: https://docs.getdbt.com/reference/resource-configs/plus-prefix
Looks like there's syntax to support merging instead of clobbering but it only applies to grants currently. :/ |
@nicor88 @svdimchenko Any thoughts here?☝️ With potentially hundreds of models to tag repeating the |
@dacreify I understand the reason why you want to have lf_inherited_tags outside the lf_tags_config, but again, can't you group your models with the same lf_tags_config together in order to use dbt project configs? |
@nicor88 Your second point is exactly why grouping the models and applying things at the project level doesn't help: We tag many models at the column level and will need to repeat our It's too bad DBT hasn't generalized the model-level usage of Thanks for the discussion here! If we have to duplicate |
hi there @dacreify ! Sorry for the delay from my side. Just the previous implementation broke the pipelines at least for 2 community members including my setup, my bad I did not test all edge cases on the review stage, that's why needed to fix that rapidly. |
@svdimchenko Isn't that confusing from a user prospective to have default_lf_inherited_tags on profile level and lf_inherited_tags as part of lf_tags_config? e.g. add_lf_tags can still receive lf_inherited_tags, but instead of doing |
@svdimchenko Apologies for missing a spot and causing that regression! Next time I'll do more manual testing on my end. @nicor88 It sounds like what you're describing is going back to the 1.6.4 behavior and accounting for the We are running fine on 1.6.4 for now. Thanks! |
Sure, we can add extra config like On the other hand, we can have the |
Thanks @svdimchenko - what you proposed sounds good for me - you are right, having in profiles and referring the default_lf_inherited_tags from there can be really helpful and clean, but we can take both approaches - as we do for s3_data_dir for example. We can try to see if credentials.default_lf_inherited_tags is not none or we fallback to dbt_project or model config. |
Description
I'm getting the following error when inherited tags is not set
Checklist