ylv01 commented on code in PR #73434:
URL: https://github.com/apache/airflow/pull/73434#discussion_r4061081062


##########
providers/google/src/airflow/providers/google/cloud/operators/stackdriver.py:
##########
@@ -147,7 +146,9 @@ def execute(self, context: Context):
             context=context,
             project_id=self.project_id or self.hook.project_id,
         )
-        return [AlertPolicy.to_dict(policy) for policy in result]
+        if self.format_ is None:

Review Comment:
   Thanks for catching this compatibility edge case. Applied the suggested 
condition to both operators in aa4e3aa, updated the docstrings, and added six 
regression cases covering "Dict", "protobuf", and the empty string across both 
operators.
   
   ---
   Drafted-by: OpenAI Codex (GPT-6) (no human review before posting)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to