Configure Amperity Bridge for Google BigQuery¶
Amperity Bridge for Google BigQuery is a first-class integration enables inbound data access to Amperity from Google BigQuery without copying data or scheduling ETL workloads.
What is BigQuery Sharing?
BigQuery Sharing publishes and shares datasets between organizations. Create an exchange, and then invite organizations to publish or subscribe to data in the exchange.
Tip
Amperity Bridge shares data directly with Google BigQuery. A bridge does not require a courier or a database export to be configured. A bridge can be configured to run automatically as part of any scheduled workflow.
Data types¶
Most Google BigQuery data types are supported by Amperity Bridge.
Important
If an upstream data type changes, edit the bridge in Amperity, accept the changes, and then save and sync the bridge.
Note
BYTES and RANGE data types are unsupported.
The following table describes how Google BigQuery data types map to Amperity data types.
Google BigQuery data type |
Amperity data type |
---|---|
An ordered list of zero or more elements of non-array values. Each element must be a Google BigQuery type that maps to a supported Amperity type. |
Array An ordered list of zero or more elements of non-array values by field name and value. Fields within an Array must contain values for data types supported by Amperity. |
A numeric value and an alias for INT64. Note BIGINT, BYTEINT, INT, INTEGER, SMALLINT, and TINYINT data types are aliases for INT64 and represent values less than 64 bits. |
Integer A numeric value, such as the quantity of items purchased. For example:
|
A decimal value with precision of 76. Important Amperity supports precision for BIGNUMERIC data types when they are less than or equal to 38. Precision that is greater than 38 is not supported. |
Decimal A fixed point number, such as for prices or message sizes. The number of characters in the decimal value is configurable. For example:
|
BOOLEAN , BOOL A value that can be TRUE, FALSE, or NULL. |
Boolean A value that can be TRUE, FALSE, or NULL. |
Variable-length binary data. |
Warning The Google BigQuery BYTES data type is unsupported. Exclude fields with BYTES data types from tables before sharing them with Amperity. |
A numeric value and an alias for INT64. Note BIGINT, BYTEINT, INT, INTEGER, SMALLINT, and TINYINT data types are aliases for INT64 and represent values less than 64 bits. |
Integer A numeric value, such as the quantity of items purchased. For example:
|
A Gregorian calendar date, independent of time zone. |
Date An ISO-8601 compliant date value, such as a birthdate. For example:
|
A Gregorian date and time, as they might be displayed on a watch, independent of time zone. |
Datetime ISO-8601 compliant date and time values, such as a purchase or transaction, the time at which data was last updated, or a campaign launch date. For example:
|
A decimal value with a precision of 38 digits. |
Decimal A fixed point number, such as for prices or message sizes. The number of characters in the decimal value is configurable. For example:
|
An approximate double precision numeric value. |
Float A floating point number. For example:
|
A collection of points, linestrings, and polygons that represent a set or subset of the surface of the Earth. |
String A string of characters. |
A numeric value and an alias for INT64. Note BIGINT, BYTEINT, INT, INTEGER, SMALLINT, and TINYINT data types are aliases for INT64 and represent values less than 64 bits. |
Integer A numeric value, such as the quantity of items purchased. For example:
|
A numeric value up to 64 bits. Note BIGINT, BYTEINT, INT, INTEGER, SMALLINT, and TINYINT data types are aliases for INT64 and represent values less than 64 bits. |
Integer A numeric value, such as the quantity of items purchased. For example:
|
A numeric value and an alias for INT64. Note BIGINT, BYTEINT, INT, INTEGER, SMALLINT, and TINYINT data types are aliases for INT64 and represent values less than 64 bits. |
Integer A numeric value, such as the quantity of items purchased. For example:
|
Represents JSON, a lightweight data-interchange format. |
String A string of characters. |
A decimal value with a precision of up to 38 digits. |
Decimal A fixed point number, such as for prices or message sizes. The number of characters in the decimal value is configurable. For example:
|
A contiguous range between two dates, datetimes, or timestamps. |
Warning The Google BigQuery RANGE data type is unsupported. Exclude fields with RANGE data types from tables before sharing them with Amperity. |
A numeric value and an alias for INT64. Note BIGINT, BYTEINT, INT, INTEGER, SMALLINT, and TINYINT data types are aliases for INT64 and represent values less than 64 bits. |
Integer A numeric value, such as the quantity of items purchased. For example:
|
Variable-length character data. |
String A sequence of characters, such as first and last names, email addresses, physical addresses, UUIDs and other IDs, phone numbers, zip codes, product names, and descriptions. May be empty. For example:
|
A container of ordered fields. Fields within a STRUCT must contain values for data types supported by Amperity. |
Struct A container of ordered fields by name and type. |
A time of day, as might be displayed on a clock, independent of a specific date and time zone. |
String A sequence of characters that represents the time of day. |
An absolute point in time, independent of any time zone or convention, such as daylight saving time (DST). |
Datetime ISO-8601 compliant date and time values, such as a purchase or transaction, the time at which data was last updated, or a campaign launch date. For example:
|
A numeric value and an alias for INT64. Note BIGINT, BYTEINT, INT, INTEGER, SMALLINT, and TINYINT data types are aliases for INT64 and represent values with fewer than 64 bits. |
Integer A numeric value, such as the quantity of items purchased. For example:
|
From Google BigQuery¶
A sync from Google BigQuery to Amperity requires configuration steps to be made in both Amperity and Google BigQuery.
Get details¶
Before you can create inbound sharing between Google BigQuery and Amperity you will need to collect the following information.
![]() |
The individual who configures Amperity to share data with Google BigQuery must be assigned the Datagrid Administrator policy in Amperity or have the ability to configure a bridge for Google BigQuery in a sandbox. |
![]() |
A Google Cloud account with the BigQuery API enabled . |
![]() |
The user who creates the data exchange and listing in Google BigQuery must have permission to access to the Google Analytics Hub API. The following permissions are required:
Note roles/serviceusage.serviceUsageAdmin is a predefined IAM role that includes the permissions required to access the Analytics Hub API. |
![]() |
The user who creates the data exchange and listing in Google BigQuery must have permission to create listings. The following permissions are required:
Note roles/bigquery.dataOwner and roles/bigquery.admin are predefined IAM roles that include the permissions required to create listings in Google BigQuery. |
![]() |
The following values are required to connect Amperity to a Google BigQuery data listing:
|
Configure Google BigQuery¶
To configure Google BigQuery to sync data with Amperity do the following:
Create data exchange¶
A data exchange in Google BigQuery is private by default. Only users and groups that have access to the data exchange can view or subscribe to data listings within the data exchange.
Create a data exchange in Google BigQuery and then allow Amperity access to that data exchange.
To create a Google BigQuery data exchange
![]() |
Open the BigQuery Console to the Sharing page. On the Sharing page click Create exchange. |
![]() |
In the Exchange configuration pane, do the following:
Note If you are configuring a new bridge, leave the Amperity account locator field blank. This will be added after the account identifier is created. |
![]() |
Click Create exchange. Important Do not configure permissions for the data exchange. The value for the Add principal field must be the value that is generated by Amperity. Click Skip. |
Create data listing¶
A data listing in Google BigQuery is a reference to a shared dataset that exists in a data exchange. A data listing is private by default.
A data listing within a private data exchange may be shared with Amperity.
To create a Google BigQuery data listing
![]() |
On the Sharing page click the name of the exchange. On the Listings tab for the exchange click Create listing. |
![]() |
From the Resource type dropdown select “BigQuery Dataset”, and then select a dataset. Note Configuring data egress controls is optional. |
![]() |
Configure a series of details for the data listing. Click Next.
Click Next
|
![]() |
Click Publish. On the Listings tab, in the row for the listing that will be shared with Amperity, from the ellipses menu select Copy share link. Amperity generates a URL similar to: https://console.cloud.google.com/bigquery/analytics-hub/exchanges/projects/123456789012/locations/<location>/dataExchanges/<exchange>/listings/<listing>
Configure this identifier in Google BigQuery as the subscriber for the data listing. |
Add inbound bridge¶
Configure an inbound bridge to sync data from Google BigQuery to Amperity.
To add an inbound bridge for Google BigQuery
![]() |
Open the Sources page. Under Inbound shares click Add bridge. Choose Google BigQuery. ![]() This opens the Add bridge dialog box. ![]() Add a name and description for the bridge or select an existing bridge, and then click Confirm. |
![]() |
Add the share link that was copied from the Google BigQuery data exchange. Amperity generates the subscriber link after the share link has been configured. The share link is a URL similar to: https://console.cloud.google.com/bigquery/analytics-hub/exchanges/projects/123456789012/locations/<location>/dataExchanges/<exchange>/listings/<listing>
Configure this identifier in Google BigQuery as the subscriber for the data listing. |
![]() |
Use the Select tables dialog box to select any combination of schemas and tables to be synced to Amperity. ![]() If you select a schema, all tables in that schema will be synced. Any new tables added later will need to be manually added to the sync. When finished, click Next. This will open the Domain table mapping dialog box. |
![]() |
Map the tables that are synced from Google BigQuery to domain tables in Amperity. ![]() Tables that are synced with Amperity are added as domain tables.
Tip Use a custom domain table to assign primary keys, apply semantic tags, and shape data within synced tables to support any of your Amperity workflows. When finished, click Save and sync. This will start a workflow that synchronizes data from Google BigQuery to Amperity and will create the mapped domain table names. You can manually sync tables that are synced with Amperity using the Sync option from the Actions menu for the inbound bridge. |