Return list of GCS URIs from Azure*ToGCS operators#61048
Return list of GCS URIs from Azure*ToGCS operators#61048shahar1 merged 8 commits intoapache:mainfrom
Conversation
…r to return lists of GCS URIs instead of strings
shahar1
left a comment
There was a problem hiding this comment.
Almost there, please be careful :)
providers/google/src/airflow/providers/google/cloud/transfers/azure_blob_to_gcs.py
Outdated
Show resolved
Hide resolved
|
Before approving and merging (as technically it looks good!) - I need some time to consider how we're going to handle it across the operators in terms of naming the "as_list" flag (should be more generic than If you have some insights about it, feel free to share. |
|
I was torn between |
I think that I'm good with this - |
|
Sounds good! Let me know once you've finished the survey :) |
OK, found it - we have unwrap_single for
I'll update the instructions in the original issue. |
988d333 to
cf297b2
Compare
Hi @shahar1, great proposal, thanks for digging up the precedent. One implementation detail: if we define it as How about putting the deprecation warning under the |
You could let it to be optional ( |
…r to use unwrap_single parameter for GCS URI returns; update tests accordingly
|
Thanks for the hint, the code looks much better now! I kept I tweaked the code to avoid a breaking change while staying more aligned with the other operator. I think it'll also be easier to remove in the future if we want to :) |
shahar1
left a comment
There was a problem hiding this comment.
Great work Aaron!
And good call regarding usage of return_gcs_uris where applicable.
I'll let Google team a couple of days to comment before merging.
|
@nailo2c are you able to run the system tests for the modified operators and attach screenshots that they pass? (maybe also a screenshot that shows the outputs) |
|
Hi @shahar1, sure :) but let me confirm the system tests are example_azure_blob_to_gcs.py and example_azure_fileshare_to_gcs.py, right? If so, here are the results: example_azure_blob_to_gcs.py
example_azure_fileshare_to_gcs.py
Please let me know if there's anything else I can help with :) |
…nd trailing / required by _parse_gcs_url
Awesome! It seems that the system tests are indeed useful for detecting such "last minute" bugs. |












Related: #11323
How
Refactor AzureBlobStorageToGCSOperator and AzureFileShareToGCSOperator to return lists of GCS URIs instead of strings.
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.