I'm building an ETL pipeline with Apache Airflow. I have to extract the latest data added to a SQL database (say daily). Therefore, I want to construct a query as follows:
SELECT foo
FROM bar
WHERE insert_date >= "DATA_INTERVAL_START_HERE"
AND insert_date < "DATA_INTERVAL_END_HERE"
To execute this query in a task (with e.g. pyodbc), I need to access the data interval start and end time of the Dag Run object inside the extract task. How can I retrieve this information?