Hi,
I would like to use macro returning values depending on parameter like this.
- macros/fn_get_bar.sql
{% macro fn_get_bar(foo) %}
{% if foo== 1 %}
{{return ('aaa')}}
{% else %}
...
{% endif %}
{%- endmacro %}
In this case, how should I call macro in my models to get “aaa” ?
Thanks,
Cinyoung