The Connector for Google BigQuery provides easy Access to Google BigQuery Data. The provider abstracts the underlying data source into tables, views, and stored procedures that can be used to both retrieve and update data. Storing and querying massive datasets can be time consuming and expensive without the right hardware and infrastructure. Google BigQuery is an enterprise data warehouse that solves this problem by enabling super-fast SQL queries using the processing power of Google’s infrastructure.
Google BigQuery uses the OAuth authentication standard. You can authorize the provider to access Google APIs on behalf on individual users or on behalf of users in a domain. In addition to the OAuth values, specify the DatasetId and ProjectId. In addition to the connection string Parameters, the Callback URL also should be specified for this connector. Set the OAuth Properties (OAuth Client ID and OAuth Client Secret). Set the CallBack URL also for this Connector. Once the Callback URL is set the OAuthAccessToken will be generated in the Connection string when you verify the Connection the the VERIFY CONNECTION Button.
The user consent flow enables individual users to connect to their own data. The service account flow enables access to domain-wide data.
To Connect to Google BigQuery, you need to register an app and set the following connection properties.
||Set this to the client Id in your app settings.|
||Set this to the client secret in your app settings.|
To connect to data, set the following connection properties:
||Set this to the token returned using the ClientID and ClientSecret.|
||Set this to the Id of the dataset you want to connect to.|
||Set this to the Id of the project you want to connect to.|
To Connect to Google Bigquery and obtain the credentials for your application:
Log in to https://console.developers.google.com.
Click Create Project or select an existing project.
Create a Project to get a Project ID.
Click on API and services ->Library.
In the API Manager, click Library -> BigQuery API.
Click Library -> BigQuery API -> Enable API.
Go to credentials Page and click on Create credentials.
Click on OAuth client ID.
Create a Web Application. Give a name. Set a callback URL if using in Authorized redirect URL Column and click create.
The ClientID and ClientSecret for the App will be displayed.
To Check for the data migrations:
Add a new connection in data governor as shown.
After Clicking Verify Connection the OAuth Tokens are generated in the Connection String, You will be taken to the following Window. Choose the account, and give access by clicking on allow. You will be displayed with authorization successful window.
Once the Connection is verified, Insert the Connection Using Insert Option.
Create a Job Using ADD A JOB option in data governor, add a data migration task to the job.
Create a New Task by right clicking job list and then Add a New Task Option. If you want to edit an Existing Task Use Edit Task.
Choose a Data Migration Task.
Choose the source and the destination for the migration of data. Name the Task.
Choose the Tables or the data that need to be migrated from the source to the destination. You can Copy all Tables by checking Copy all tables box.
Execute the Job. Check for results and the details of the data migrated in Execution History.
The Connector for Google BigQuery models the data as defined within Google BigQuery for the Project and Dataset configured.
Table Definitions are dynamically generated based on the table definitions within Google BigQuery for the project and Dataset specified in the connection string Option. Datatypes Within Google BigQuery are consistent, Except RECORD and TIMESTAMP types returned as Strings.
Views are similar to tables in the way that data is represented; however, views do not support updates.
||Lists all the accessible datasets for a given project.|
||Lists all the projects for the authorized user|