-
Notifications
You must be signed in to change notification settings - Fork 1
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
Macros #22
base: main
Are you sure you want to change the base?
Conversation
…easy to translate them
… and an excel folder for the macros that resemble excel formulas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one comment on averageif
( | ||
select avg({{ average_range }}) | ||
from {{ table }} | ||
where range = criteria |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nog going to work
["macro.dbt_excel.enforce_string"], | ||
indirect=True, | ||
) | ||
def test_enforce_string(macro_generator: MacroGenerator, config) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmperafan : Could you add more tests for the macros?
Here is a small sample of Excel functions. I am using average as an example to create (averagea, averageif, averagex), but once they have been validated, we can do the same with other aggregations.