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 2021/01/11 10:06:17 UTC

[GitHub] [airflow] TobKed commented on a change in pull request #13598: add examples for BigQuery load and extract jobs

TobKed commented on a change in pull request #13598:
URL: https://github.com/apache/airflow/pull/13598#discussion_r554936086



##########
File path: airflow/providers/google/cloud/example_dags/example_bigquery_queries.py
##########
@@ -125,6 +126,39 @@
         )
         # [END howto_operator_bigquery_select_job]
 
+        extract_job = BigQueryInsertJobOperator(
+            task_id="extract_to_gcs_job",
+            configuration={
+                "extract": {
+                    "sourceTable": {
+                        "projectId": PROJECT_ID,
+                        "datasetId": DATASET_NAME,
+                        "tableId": TABLE_1,
+                    },
+                    "destinationUris": ["gs://example_bucket/dump/table.*.csv.gz"],

Review comment:
       Could you put bucket it in the environment variable? Avoiding hard coding will allow to run system tests




----------------------------------------------------------------
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