BigQuery
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide describes how to configure a BigQuery data source in Publisher and how to set up BigQuery permissions correctly for both specific dataset access and project-wide configurations, explaining the core concepts and minimum permissions required for each scenario.
From the Publisher interface, select Data Sources in the navigation bar and click Connect Data Source. Choose Trino from the available connectors.
In the Data Source Configuration screen set up the Catalog properties field. Here's an example:
The documents the properties above. Custom properties provided by the enhanced_bigquery
are described below:
Set enhanced-bigquery.include-datasets
to the dataset(s) that should be included. Multiple datasets can be concatenated using +
:
After downloading the JSON key you created in the Creating Credentials steps, open a new terminal window and run the command below to base 64 encode the key. You can paste the contents of the output file as the value for the bigquery.credentials-key
property.
Service Account (SA): This is an identity generated in Google Cloud that can be used to interact with GCP services. Each SA has a unique email address (identity) and one or more JSON keys.
Data Project: A project that houses the target dataset.
Quota project: A project that you would like to bill BigQuery to and consume quota resources.
Permission: Granular actions that a user can perform on a given resource.
Role: A collection of permissions typically needed for specific interactions against one or more resources: “Data Viewer,” “Storage Reader,” etc.
Create a new Service Account (SA) in any project.
Generate a new JSON key and download it.
Navigate to the quota project's IAM and Admin Page.
Grant the following Roles to the SA you created:
Service Usage Consumer — This allows the SA to consume resources.
BigQuery Read Session User — This allows the SA to start a BigQuery read session with the storage API. Without this, they can interact with BQ via the normal Query interface but cannot list the table's contents through our DLCON (although they will get the metadata).
BigQuery Job User — This allows the user to run jobs.
Navigate to the BigQuery console.
Open the dataset you want to grant access to.
Click on “Sharing." then click on “Permissions.”
Add the SA from the "Creating Credentials" step above and grant it the following role.
BigQuery Data Viewer — This grants the SA the ability to read metadata and table data from any table in this dataset.
Create a new Service Account (SA) in any project.
Generate a new JSON key and download it.
Navigate to the quota project's IAM and Admin Page.
Grant the following Roles to the SA you created:
Service Usage Consumer — This allows the SA to consume resources.
BigQuery Read Session User — This allows the SA to start a BigQuery read session with the storage API. Without this, they can interact with BQ via the normal Query interface but cannot list the table's contents through our DLCON (although they will get the metadata).
BigQuery Job User — This allows the user to run jobs.
BigQuery Data Viewer — This grants the SA the ability to read metadata and table data from any table in this dataset.
For more information on creating a new service account within GCP, please refer to Google's .