Hello ppl -
I have this case
model1
{{ config(materialized="table", schema="clean") }}
model2
{{ config(materialized="table", schema="stg") }}
then
{%- macro round_percentage(col) -%}
ROUND( {{ col }},3)
{%- endmacro -%}
use by model1 or 2 etc
can I make round_percentage able to recognise in which schema is running and and behave in accordance
{%- macro round_percentage(col) -%}
if schema = clean
ROUND( {{ col }},3)
if schema = stg
ROUND( {{ col }},6)
{%- endmacro -%}