You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@cccs-jc this makes sense and I can see where you're coming from. Thanks for writing up the request with such clear details. This is actually a duplicate of [Feature] Support ref + custom macros in test config rendering context. Unfortunately the workaround you are currently employing is what we suggest to handle the desired behavior.
Closing this issue as a duplicate to keep the conversation centralized on one issue. Feel free to comment over on #4103 if you have anything to add!
Is this your first time opening an issue?
Describe the Feature
the get_where_subquery macro allows you to place conditions in a where configuration
However it's not possible to make use of macro in the
where
. It is treated as a string a place as is in the subquery.We have period filter macro what we would like to use inside the
where
Describe alternatives you've considered
We worked around this limitation by writing our own version of the
get_where_subquery
macro.Our version of the macro is specific to our use case of using period_filter_sql.
This works but makes it hard to cover other uses cases since our
get_where_subquery
macro does one thing only.Who will this benefit?
Having the ability to use the power of dbt within the
where
configuration would enable uses to leverage macros when applying conditions to the tests.Are you interested in contributing this feature?
I'm interested in contributing.
Anything else?
No response
The text was updated successfully, but these errors were encountered: