Ingesting Data from Google BigQuery | Vendia

Ingesting Data from Google BigQuery

Connecting to Google BigQuery

To connect to Google BigQuery, you need to set up authentication using a Google Cloud service account and provide the following information:

Prerequisites

Before connecting to Google BigQuery, ensure that:

Service Account Setup

To set up service account authentication for BigQuery:

  1. Create a service account in your Google Cloud Project
  2. Generate a JSON key file containing all the required credentials
  3. Assign appropriate BigQuery roles such as:
  1. Use the JSON key file by either:

Required Permissions

The service account connecting to BigQuery must have the following permissions:

Example Configuration

Here’s an example of a typical BigQuery connection configuration:

Field Example Value
Name Production BigQuery Analytics
Dataset Name analytics_dataset
Service Account JSON Key File { "type": "service_account", "project_id": "...", ... }
Client Email vendia-service@your-project.iam.gserviceaccount.com
Private Key -----BEGIN PRIVATE KEY-----\n...
Project ID your-google-cloud-project-id
Private Key ID abc123def456ghi789
Client ID 123456789012345678901
Client X509 Cert URL https://www.googleapis.com/robot/v1/metadata/x509/...

Vendia Supported and Unsupported BigQuery Data Types

Vendia Supported BigQuery Data Types Vendia Unsupported BigQuery Data Types
BOOLEAN (BOOL) ARRAY
BYTES BIGNUMERIC (BIGDECIMAL)
DATE GEOGRAPHY
DATETIME INTERVAL
FLOAT64 (FLOAT) JSON
INT64 (INTEGER, INT, BIGINT, etc.) RANGE
NUMERIC (DECIMAL) STRUCT (RECORD)
STRING
TIME
TIMESTAMP

Best Practices

Troubleshooting

If you encounter connection issues:

  1. Authentication Failed: Verify that service account credentials and JSON key file are valid
  2. Project Not Found: Check that the Project ID is correct and accessible
  3. Dataset Not Found: Confirm that the dataset exists and the service account has access
  4. Permission Denied: Ensure that the service account has the required BigQuery permissions
  5. API Errors: Verify that the BigQuery API is enabled for your Google Cloud Project
  6. Network Issues: Check that firewall rules allow HTTPS connections to Google APIs
  7. Quota Exceeded: Monitor BigQuery quotas and request increases if needed
  8. Invalid Private Key: Ensure that the private key is in the correct PEM format

Next Steps

After successfully connecting to your BigQuery dataset, you can: