Intro
Google BigQuery is a cloud-based big data analytics web service for processing very large read-only data sets. You can use Domo’s Google BigQuery Service connector to pull data from a specified project. Google BigQuery queries are written using a variation of the standard SQL SELECT statement. To learn more about the BigQuery API, go to https://cloud.google.com/bigquery/docs/reference/v2/. The Google BigQuery Service connector is a “Cloud App” connector, meaning it retrieves data stored in the cloud. In the Data Center, you can access the connector page for this and other Cloud App connectors by clicking Cloud App in the toolbar at the top of the window. This topic discusses the fields and menus that are specific to the Google BigQuery Service connector user interface. For general information about adding DataSets, setting update schedules, and editing DataSet information, see Adding a DataSet Using a Data Connector.Primary Use Cases | Any situations in which you need to extract data from Google BigQuery. |
Primary Metrics | DFP data |
Primary Company Roles |
|
Average Implementation Time | This depends on how many queries need to be written. Having someone who understands the BigQuery database structure and knows how to build the queries will greatly cut down on deployment time. |
Ease of Use (on a 1-to-10 scale with 1 being easiest) | 5 |
Best Practices
- Structuring your queries to be optimized so you are pre-aggregating data before pulling it into Domo will significantly improve performance.
- Getting your data closely structured to support the visualizations prior to ingestion will save time by potentially eliminating the ETL process in Domo.
Prerequisites
To connect to a BigQuery service account, you must have a Google BigQuery service account JSON key. To generate a key, do the following:- In the Google Cloud Platform Console, open the IAM & Admin page.
- Click Service accounts in the left-hand navigation pane.
- Select your project and click Open.
- Click Create Service Account.
- Enter a name and description for the service account.
-
Click Create.
Note: You may need the “BigQuery Admin” role in the service account permissions dialog. Please consult with your Google administrator for additional guidance.
- Select Project > Owner.
- Click Continue.
- Click Create key.
- Select JSON as the key type.
- Click Create.
Connecting to Your BigQuery Service Account
This section enumerates the options in the Credentials and Details panes in the Google BigQuery Service Connector page. The components of the other panes in this page, Scheduling and Name & Describe Your DataSet, are universal across most connector types and are discussed in greater length in Adding a DataSet Using a Data Connector.Credentials Pane
This pane contains fields for entering credentials to connect to your BigQuery service account. The following table describes what is needed for each field:Field | Description |
|---|---|
Service Account Key JSON | Copy and paste the JSON for your BigQuery service account key. For information about creating a key, see “Prerequisites,” above. |
Details Pane
This pane contains a number of fields and menus you can use to configure your report.Menu | Description | ||||||
|---|---|---|---|---|---|---|---|
Report | Select the BigQuery report type to run. The following reports are available:
| ||||||
SQL Dialect | Select whether your query is to be written using LegacySQL or StandardSQL. By default, Standard SQL is used. | ||||||
Query | Enter a fully qualified BigQuery query. The query language you use must match what you have selected in the SQL Dialect menu. For full documentation about writing BigQuery queries, see https://cloud.google.com/bigquery/query-reference . For more information about setting a query prefix, see https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql . | ||||||
Query Parameter | Enter the query parameter value. This is the initial value for query parameter. You can provide multiple comma separated query parameters. The query in the above “Query” field will fetch the data according to the parameter values provided here. For more information, see “Using the Query Parameter” section below. Example: | ||||||
Allow Large Results | Select whether you expect a large resulting DataSet from this query. If you select Yes , a temporary table will be created and then deleted when the job is finished. You will need to enter a DataSet ID in the DataSet ID field for the table to be created. | ||||||
DataSet Name | Select the name of the dataset you want to pull into Domo. | ||||||
Table Name | Select the table you want to pull data from. | ||||||
Processing Location | Enter the location where your query will run. Queries running in a specific location may only reference data in that location. | ||||||
Max Results | Enter the maximum number of results you want to return in your report. The default is 10,000 results per page. If your DataSet throws an “Out of Memory” error, decrease this number. | ||||||
Use Google BigQuery Schema | Select this checkbox to use the schema received from Google BigQuery. Example: Your table may contain ‘123’ in a String column. |
Using the Query Parameter
Query parameter indicates the initial values for the query parameters. After the initial run, the query will only request the updated data from the provider on subsequent runs. You can provide multiple query parameters separated by comma.
Other Panes
For information about the remaining sections of the connector interface, including how to configure scheduling, retry, and update options, see Adding a DataSet Using a Data Connector.Troubleshooting
- Ensure that the credentials have the proper access to the query the tables needed.
- Make sure the queries are correct and calling the correctly named data sources.
FAQs
When should I use this connector?
When should I use this connector?
How is the page size determined?
How is the page size determined?
How do I process data in specific locations?
How do I process data in specific locations?
My DataSet returns the error "Too large to run." How can I retrieve large results for my query?
My DataSet returns the error "Too large to run." How can I retrieve large results for my query?
How frequently will my data update?
How frequently will my data update?
Are there any API limits that I need to be aware of?
Are there any API limits that I need to be aware of?
Can I use the same Google BigQuery account for multiple DataSets?
Can I use the same Google BigQuery account for multiple DataSets?
What kind of credentials do I need to power up this connector?
What kind of credentials do I need to power up this connector?
Where can I find my service account key JSON?
Where can I find my service account key JSON?
- Open the IAM & Admin page in the GCP Console.
- In the left navigation, click Service accounts.
- Select your project and click Open.
- Click Create Service Account.
- Enter a service account name and service account description. Click Create.
- Select a role you wish to grant to the service account (Project Owner). Click Continue.
- Click Create key. Select JSON key type. Click Create. Private key will be saved to your computer.
- Close the pop up. Click Done.