shahar1 commented on code in PR #31457:
URL: https://github.com/apache/airflow/pull/31457#discussion_r1228601415
##########
airflow/providers/google/cloud/operators/bigquery.py:
##########
@@ -1181,7 +1191,13 @@ def execute(self, context: Context):
]
else:
raise AirflowException(f"argument 'sql' of type {type(str)} is
neither a string nor an iterable")
- context["task_instance"].xcom_push(key="job_id", value=job_id)
+ job_id_params = {
+ "job_id": job_id,
+ "project_id": self.hook.project_id,
+ "location": self.location if self.location else "US",
+ }
+ context["task_instance"].xcom_push(key="job_id", value=job_id_params)
Review Comment:
The key name is a bit misleading, as it now includes more information -
maybe rename it to `job_id_params` as well?
--
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]