:mod:`airflow.contrib.operators.bigquery_to_gcs` ================================================ .. py:module:: airflow.contrib.operators.bigquery_to_gcs Module Contents --------------- .. py:class:: BigQueryToCloudStorageOperator(source_project_dataset_table, destination_cloud_storage_uris, compression='NONE', export_format='CSV', field_delimiter=',', print_header=True, bigquery_conn_id='bigquery_default', delegate_to=None, labels=None, *args, **kwargs) Bases::class:`airflow.models.BaseOperator` Transfers a BigQuery table to a Google Cloud Storage bucket. .. seealso:: For more details about these parameters: https://cloud.google.com/bigquery/docs/reference/v2/jobs :param source_project_dataset_table: The dotted ``(.|:).`` BigQuery table to use as the source data. If ```` is not included, project will be the project defined in the connection json. (templated) :type source_project_dataset_table: str :param destination_cloud_storage_uris: The destination Google Cloud Storage URI (e.g. gs://some-bucket/some-file.txt). (templated) Follows convention defined here: https://cloud.google.com/bigquery/exporting-data-from-bigquery#exportingmultiple :type destination_cloud_storage_uris: list :param compression: Type of compression to use. :type compression: str :param export_format: File format to export. :type export_format: str :param field_delimiter: The delimiter to use when extracting to a CSV. :type field_delimiter: str :param print_header: Whether to print a header for a CSV file extract. :type print_header: bool :param bigquery_conn_id: reference to a specific BigQuery hook. :type bigquery_conn_id: str :param delegate_to: The account to impersonate, if any. For this to work, the service account making the request must have domain-wide delegation enabled. :type delegate_to: str :param labels: a dictionary containing labels for the job/query, passed to BigQuery :type labels: dict .. attribute:: template_fields :annotation: = ['source_project_dataset_table', 'destination_cloud_storage_uris', 'labels'] .. attribute:: template_ext :annotation: = ['.sql'] .. attribute:: ui_color :annotation: = #e4e6f0 .. method:: execute(self, context)