pateash commented on code in PR #36151:
URL: https://github.com/apache/airflow/pull/36151#discussion_r1422965939


##########
airflow/providers/apache/spark/hooks/spark_submit.py:
##########
@@ -204,8 +213,8 @@ def _resolve_connection(self) -> dict[str, Any]:
 
             # Determine optional yarn queue from the extra field
             extra = conn.extra_dejson
-            conn_data["queue"] = extra.get("queue")
-            conn_data["deploy_mode"] = extra.get("deploy-mode")
+            conn_data["queue"] = self._queue if self._queue else 
extra.get("queue")

Review Comment:
   Override the values if passed otherwise fetch from Spark's Connection Extras



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