shahar1 commented on code in PR #44890:
URL: https://github.com/apache/airflow/pull/44890#discussion_r1884644219


##########
providers/src/airflow/providers/google/cloud/hooks/dataproc.py:
##########
@@ -124,6 +124,14 @@ def add_query(self, query: str) -> None:
         """
         self.job["job"][self.job_type]["query_list"] = {"queries": [query]}
 
+    def set_queries(self, queries: list[str]) -> None:
+        """
+        Set queries for Dataproc job.
+
+        :param queries: queries for the job.
+        """
+        self.job["job"][self.job_type]["query_list"] = {"queries": queries}

Review Comment:
   Instead of creating another method, I think that it would be nicer to merge 
it into the existing `add_query`



-- 
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