I'm trying to pass a dynamic date value into a macro function ds_format.
DEFAULT_DATE= '{{ ds }}'
__init__(self, exec_date=DEFAULT_DATE): self.exec_date = exec_date
Now, I've some macros within the functions like
{{macros.ds_format(ds, "%Y-%m-%d", "%Y%m%d")}}
But, I want to pass the exec_date into the macro like
"""{{ macros.ds_format(""" + self.exec_date + """, "%Y-%m-%d", "%d%m%Y") }}"""
Is this the right way to pass a value to to a micro in Airflow (jinja2) ? or. Is there a different way to pass the dynamic value (exec_date) ?.