Reference: Examples of using macros with Airflow in Qubole


This article contains various examples of using macros with Airflow in Qubole.


a. Getting "today":

-> today = '{{ ds }}'

b. Getting "Day before yesterday":

-> dayBeforeYest = '{{ macros.ds_add(ds, -3)}}’

c. Getting "next week same day":

-> nextWeekSameDay = '{{ macros.ds_add(ds, 7)}}’

Additional Reading
You can also find more information on using Macros with Airflow in Qubole below:
Have more questions? Submit a request


Powered by Zendesk