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/12 09:46:33 UTC

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

mik-laj commented on a change in pull request #13598:
URL: https://github.com/apache/airflow/pull/13598#discussion_r555638888



##########
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:
       System tests for BigQuery: https://github.com/apache/airflow/blob/master/tests/providers/google/cloud/operators/test_bigquery_system.py
   Docs for system tests:
   https://github.com/apache/airflow/blob/master/TESTING.rst#airflow-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