You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "sleepy-tiger (via GitHub)" <gi...@apache.org> on 2023/06/19 09:48:38 UTC

[GitHub] [airflow] sleepy-tiger commented on a diff in pull request #30053: fix setting project_id for gs to bq and bq to gs

sleepy-tiger commented on code in PR #30053:
URL: https://github.com/apache/airflow/pull/30053#discussion_r1233807317


##########
airflow/providers/google/cloud/transfers/bigquery_to_gcs.py:
##########
@@ -193,7 +193,7 @@ def _submit_job(
 
         return hook.insert_job(
             configuration=configuration,
-            project_id=hook.project_id,
+            project_id=configuration["extract"]["sourceTable"]["projectId"],

Review Comment:
   @Yaro1  May I know the reason why we hard code the project id from sourceTable? We got the issue when we try to extract data from Project A but we want to submit job by using our own Project B. This line does not allow us to use our default project id. 



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org