📊 BigQuery Connection

Connect your Google BigQuery data warehouse to Meza AI.

Overview

Connect your Google BigQuery data warehouse to Meza AI to sync customer data from your analytics infrastructure. BigQuery is ideal for companies with large datasets and existing Google Cloud infrastructure.

Prerequisites

  • Google Cloud project with BigQuery enabled
  • Service account with BigQuery Data Viewer role
  • Service account JSON key file

Creating a Service Account

1

Go to Google Cloud Console

Navigate to console.cloud.google.com and select your project.

2

Open IAM & Admin

Go to IAM & AdminService Accounts in the left sidebar.

3

Create Service Account

Click Create Service Account and enter:

  • Name: meza-ai-readonly
  • Description: Read-only access for Meza AI
4

Assign Role

Grant the BigQuery Data Viewer role to the service account.

5

Create Key

Go to the Keys tab, click Add KeyCreate new keyJSON. Download and save the key file securely.

Connection Steps

1

Navigate to Databases

Go to ConfigurationDatabases in the left sidebar.

2

Select BigQuery

Click Add Connection and select BigQuery.

3

Upload Service Account Key

Upload your service account JSON key file.

4

Select Project & Dataset

Choose your Google Cloud project and default dataset.

5

Test & Save

Click Test Connection then Save to complete setup.

Connection Parameters

ParameterDescriptionRequired
Service Account KeyJSON key file downloaded from Google CloudYes
Project IDYour Google Cloud project IDYes
DatasetDefault BigQuery dataset to queryYes
LocationDataset location (e.g., US, EU, asia-northeast1)No

💡 Note

BigQuery queries are billed based on data scanned. Meza AI optimizes queries to minimize costs, but ensure you have appropriate billing alerts configured in your Google Cloud project.

Required Permissions

The service account needs these BigQuery permissions:

bigquery.datasets.get
bigquery.tables.get
bigquery.tables.list
bigquery.tables.getData
bigquery.jobs.create

The BigQuery Data Viewer role includes all these permissions. For more granular control, create a custom role with just these permissions.

Cost Optimization Tips

  • Use partitioned tables — Meza AI automatically filters by partition when possible
  • Limit columns — Only select columns you need in your data models
  • Set up cost controls — Configure BigQuery quotas to prevent unexpected costs
  • Monitor usage — Check BigQuery usage in Google Cloud Console

Troubleshooting

Permission Denied

If you see permission errors:

  • Verify the service account has BigQuery Data Viewer role
  • Check the project ID matches your service account project
  • Ensure the dataset exists and is accessible

Invalid Key File

If the key file is rejected:

  • Make sure you downloaded the JSON format (not P12)
  • Check the file hasnt been modified or corrupted
  • Generate a new key if needed

What's Next?