Return list of destination URIs from HttpToGCSOperator#61306
Return list of destination URIs from HttpToGCSOperator#61306potiuk merged 10 commits intoapache:mainfrom
Conversation
2551933 to
b2adcb4
Compare
|
Why do we need to do deprecation? From what I can tell, the operator does not return a value at all before the change, so we don’t need to consider compatibility? We can just add the argument and set the default to True. |
There was a problem hiding this comment.
+1 one to the comment made by @uranusjr, and I'll take it a bit further - I'd probably avoid adding the unwrap_single parameter at all - as after aligning behavior of all relevant operators at some point in the future, we could think of deprecating the unwrap_single and return only list[str] (accessing a single value would be consistent and simple as lst[0]). To make such alignment easier, it would be the best to avoid this flag at all if it is not required for backward-compatbility.
|
Thanks for your review comments @uranusjr and @shahar1 ! Since am not aware of the past context, I was curious to learn the reason behind "unwrap_single" name has been chosen for this interim parameter name. |
If you've made any changes, you might have forgotten to push them :) Basically it was my idea for the naming - I took inspiration from In the case of |
|
Thanks for the clarification @shahar1 as this helps me understand better the thought process behind choosing variable names! Apologies for delay in response as it has been busy with items related to Airflow:) |
ac23986 to
b9dcf34
Compare
|
Needs to update some tests though |
|
Yes am working on the tests.. |
There was a problem hiding this comment.
Excellent job Srabasti!
Before merging we need to run the system tests for this operator to ensure that nothing breaks.
You may try doing it on your own, or wait until someone else does - if necessary, I will help with it during this week before cutting the release the new Google provider version, so this feature will be included.
@yuseok89 - maybe you could lend a hand? :)
|
@shahar1 Test Screenshot
|
* Adding changes for http_to_gcs operator * Adding changes for http_to_gcs operator * Adding tests * Changes per review comments * Changes per review comments * Changes reverted for tests * Changes reverted for tests * Adding tests for http_to_gcs operator * Adding tests



Changes per #11323 for http_to_gcs_operator
Was generative AI tooling used to co-author this PR?
Yes for tests - ChatGPT