You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/10/01 15:47:32 UTC
[GitHub] [airflow] mik-laj commented on a change in pull request #6227:
[AIRFLOW-XXX] Example for BigQuery to BigQuery operator
mik-laj commented on a change in pull request #6227: [AIRFLOW-XXX] Example for BigQuery to BigQuery operator
URL: https://github.com/apache/airflow/pull/6227#discussion_r330134151
##########
File path: airflow/example_dags/example_bigquery_to_bigquery.py
##########
@@ -0,0 +1,34 @@
+import airflow
+from airflow.models import DAG
+from airflow.operators import bash_operator
+from airflow.contrib.operators.bigquery_to_bigquery import BigQueryToBigQueryOperator
+
+args = {
+ 'owner': 'Airflow',
+ 'start_date': airflow.utils.dates.days_ago(2),
+}
+
+dag = DAG(
Review comment:
Can you use a context manager?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services