slilichenko commented on code in PR #25400:
URL: https://github.com/apache/beam/pull/25400#discussion_r1109062814
##########
website/www/site/content/en/documentation/io/built-in/google-bigquery.md:
##########
@@ -323,6 +323,11 @@ in the following example:
{{< code_sample "sdks/python/apache_beam/examples/snippets/snippets.py"
model_bigqueryio_read_query_std_sql >}}
{{< /highlight >}}
+{{< paragraph class="language-java" >}}
+#### Query execution project
+By default the pipeline executes the query in the Google Cloud project
associated with the pipeline (in case of the Dataflow runner it's the project
where the pipeline runs). There are cases where the query execution project
should be different from the pipeline project. You can define the query
execution project by setting the pipeline option
"[bigQueryProject](https://beam.apache.org/releases/javadoc/current/org/apache/beam/sdk/io/gcp/bigquery/BigQueryOptions.html#getBigQueryProject--)"
to the desired Google Cloud project id.
+{{< /paragraph >}}
+
Review Comment:
I don't feel comfortable adding "Python doesn't support it". I spent some
time reading the logic of Python's IO and there is potentially a way to do it;
but it requires testing or someone with the deeper knowledge of the transform
needs to provide details. How about "If you use Java SDK, you can define the
query execution project ...."?
--
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]