josh-fell commented on a change in pull request #18657:
URL: https://github.com/apache/airflow/pull/18657#discussion_r720704288
##########
File path: airflow/providers/apache/drill/example_dags/example_drill_dag.py
##########
@@ -19,14 +19,15 @@
"""
Example Airflow DAG to execute SQL in an Apache Drill environment using the
`DrillOperator`.
"""
+from datetime import datetime
+
from airflow.models import DAG
from airflow.providers.apache.drill.operators.drill import DrillOperator
-from airflow.utils.dates import days_ago
with DAG(
dag_id='example_drill_dag',
schedule_interval=None,
- start_date=days_ago(2),
+ start_date=datetime(2021, 1, 1),
Review comment:
I chose to create a `START_DATE` variable in that Apache Beam example
DAG file because there are several DAGs declared in that single file -- all of
which had the same `start_date` value. IMO it doesn't add much value to do the
same here as there is only one DAG declared so `start_date` is set once.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]