Skip to content

Conversation

@jroachgolf84
Copy link
Collaborator

Description

Per #59344, the BigQueryToGCSOperator has no return value. Ideally, this Operator would provide information about the files that are being written to GCS for other Tasks, Sensors, etc. to read.

This PR adds the return of the destination_cloud_storage_uris from the execute and execute_complete methods.

Testing

Unit-tests in the proviers/google/tests/unit/google/cloud/transfers/test_bigquery_to_gcs.py were updated to properly reflect the new return values in the execute and execute_complete methods. All unit-tests for BigQueryToGCSOperator (including the newly updated/created ones) can be run using the command below:

breeze testing providers-tests providers/google/tests/unit/google/cloud/transfers/test_bigquery_to_gcs.py

closes: #59344

@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Dec 12, 2025
@jroachgolf84 jroachgolf84 marked this pull request as ready for review December 12, 2025 13:33
@shahar1 shahar1 changed the title issue-59344: Returning destination_cloud_storage_uris from BigQueryToGCSOperator Returning destination_cloud_storage_uris from BigQueryToGCSOperator Dec 12, 2025
@jroachgolf84 jroachgolf84 requested a review from shahar1 December 12, 2025 16:56
@shahar1 shahar1 merged commit b0cb5c9 into apache:main Dec 12, 2025
86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BigQueryToGCSOperator should return destination GCS URI(s)

2 participants