@@ -232,16 +232,18 @@ you must enable the following APIs:
232
232
* The BigQuery Connection API (bigqueryconnection.googleapis.com)
233
233
* The Vertex AI API (aiplatform.googleapis.com)
234
234
235
- and you must be granted the following IAM roles:
235
+ and you must be granted the following IAM roles in the project :
236
236
237
237
* BigQuery Data Editor (roles/bigquery.dataEditor)
238
238
* BigQuery Connection Admin (roles/bigquery.connectionAdmin)
239
- * Service Account User (roles/iam.serviceAccountUser) on the
240
- `service account <https://cloud.google.com/functions/docs/reference/iam/roles#additional-configuration >`__
241
-
239
+ * Service Account User (roles/iam.serviceAccountUser)
242
240
* Vertex AI User (roles/aiplatform.user)
243
241
* Project IAM Admin (roles/resourcemanager.projectIamAdmin) if using default
244
- BigQuery connection, or Browser (roles/browser) if using a pre-created connection
242
+ BigQuery connection, or Browser (roles/browser) if using a pre-configured connection.
243
+ This requirement can be avoided by setting
244
+ ``bigframes.pandas.options.bigquery.skip_bq_connection_check `` option to ``True ``,
245
+ in which case the connection (default or pre-configured) would be
246
+ used as-is without any existence or permission check.
245
247
246
248
247
249
ML locations
@@ -288,11 +290,17 @@ into `BigQuery remote functions
288
290
<https://cloud.google.com/bigquery/docs/remote-functions> `_ . Creating a remote
289
291
function in BigQuery DataFrames (See `code samples
290
292
<https://cloud.google.com/bigquery/docs/remote-functions#bigquery-dataframes> `_)
291
- creates a BigQuery remote function, a `BigQuery
292
- connection
293
- <https://cloud.google.com/bigquery/docs/create-cloud-resource-connection> `_ ,
294
- and a `Cloud Functions (2nd gen) function
295
- <https://cloud.google.com/functions/docs/concepts/overview> `_ .
293
+ creates:
294
+
295
+ 1. A `Cloud Functions (2nd gen) function <https://cloud.google.com/functions/docs/concepts/overview >`_.
296
+ 2. A `BigQuery connection <https://cloud.google.com/bigquery/docs/create-cloud-resource-connection >`_.
297
+ If the BigQuery connection is created, the BigQuery service will
298
+ create a
299
+ `Google Cloud-managed IAM service account <https://cloud.google.com/bigquery/docs/working-with-connections#before_you_begin >`_
300
+ and attach it to the connection. You can use a pre-configured BigQuery
301
+ connection if you prefer, in which case the connection creation is skipped.
302
+ 3. A BigQuery remote function that talks to the cloud function (1) using the BigQuery
303
+ connection (2).
296
304
297
305
BigQuery connections are created in the same location as the BigQuery
298
306
DataFrames session, using the name you provide in the custom function
@@ -331,17 +339,19 @@ To use BigQuery DataFrames remote functions, you must enable the following APIs:
331
339
* The Cloud Resource Manager API (cloudresourcemanager.googleapis.com)
332
340
333
341
To use BigQuery DataFrames remote functions, you must be granted the
334
- following IAM roles:
342
+ following IAM roles in the project :
335
343
336
344
* BigQuery Data Editor (roles/bigquery.dataEditor)
337
345
* BigQuery Connection Admin (roles/bigquery.connectionAdmin)
338
346
* Cloud Functions Developer (roles/cloudfunctions.developer)
339
- * Service Account User (roles/iam.serviceAccountUser) on the
340
- `service account <https://cloud.google.com/functions/docs/reference/iam/roles#additional-configuration >`__
341
-
347
+ * Service Account User (roles/iam.serviceAccountUser)
342
348
* Storage Object Viewer (roles/storage.objectViewer)
343
349
* Project IAM Admin (roles/resourcemanager.projectIamAdmin) if using default
344
- BigQuery connection, or Browser (roles/browser) if using a pre-created connection
350
+ BigQuery connection, or Browser (roles/browser) if using a pre-configured connection.
351
+ This requirement can be avoided by setting
352
+ ``bigframes.pandas.options.bigquery.skip_bq_connection_check `` option to ``True ``,
353
+ in which case the connection (default or pre-configured) would be
354
+ used as-is without any existence or permission check.
345
355
346
356
**Limitations **
347
357
0 commit comments