Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion airflow/providers/google/cloud/transfers/bigquery_to_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ def _handle_job_error(job: BigQueryJob | UnknownJob) -> None:
raise AirflowException(f"BigQuery job {job.job_id} failed: {job.error_result}")

def _prepare_configuration(self):
"""
This configuration define necessary argument for the data transfer, which related to project
where the BigQuery table resides.
"""
source_project, source_dataset, source_table = self.hook.split_tablename(
table_input=self.source_project_dataset_table,
default_project_id=self.project_id or self.hook.project_id,
Expand Down Expand Up @@ -183,7 +187,7 @@ def _submit_job(

return hook.insert_job(
configuration=configuration,
project_id=configuration["extract"]["sourceTable"]["projectId"],
project_id=self.project_id if self.project_id is not None else hook.project_id,
location=self.location,
job_id=job_id,
timeout=self.result_timeout,
Expand Down