madhukar05 commented on issue #11524:
URL: https://github.com/apache/airflow/issues/11524#issuecomment-709993981
**Composer Version :** composer-1.12.2-airflow-1.10.9
Here is the complete scripts which i'm using
import os
from airflow import models
from airflow.utils.dates import days_ago
from airflow.operators import bash_operator
from airflow.providers.google.cloud.transfers.bigquery_to_gcs import
BigQueryToGCSOperator
from airflow.providers.google.cloud.operators.bigquery import
BigQueryExecuteQueryOperator
dag = models.DAG(
dag_id='wrapper_script_for_dag',
start_date=days_ago(2),
schedule_interval=None,
)
bq_to_gcs_dag = BigQueryToGCSOperator(
task_id='bq_to_gcs_dag', gcp_conn_id='my_gcp_connection' ,
source_project_dataset_table=XXXXXX ,
destination_cloud_storage_uris=f"gs://XXX",
export_format='CSV',
print_header=False ,
dag=dag
)
----------------------------------------------------------------
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:
[email protected]