Securely links a Google BigQuery project to Looker so you can model, explore, and visualize warehouse data.
Connecting unlocks Looker’s modeling layer on top of BigQuery’s scalable storage, allowing analysts to write LookML once and serve governed dashboards to every team.
Create a dedicated BigQuery service account, assign BigQuery Data Viewer & BigQuery Job User roles, and download the JSON key. In Looker, you’ll need admin rights to add connections.
Navigate to Admin → Connections → New Connection. Choose the bigquery dialect, upload the service-account JSON, enter the project ID, and test the connection.
Grant the service account access to each dataset with bigquery.dataViewer
and bigquery.jobUser
. Use the UI or run:
bq --project_id=my-proj --dataset_id=ecommerce \
add-iam-policy-binding \
--member="serviceAccount:looker@my-proj.iam.gserviceaccount.com" \
--role="roles/bigquery.dataViewer"
Set connection_type: "service_account"
, dialect: bigquery
, and optionally additional_params: {use_standard_sql: "yes", maximumBillingTier: 10}
for cost control.
SELECT c.name,
SUM(oi.quantity * p.price) AS lifetime_value
FROM `ecommerce.Customers` AS c
JOIN `ecommerce.Orders` AS o ON o.customer_id = c.id
JOIN `ecommerce.OrderItems` AS oi ON oi.order_id = o.id
JOIN `ecommerce.Products` AS p ON p.id = oi.product_id
GROUP BY c.name
ORDER BY lifetime_value DESC
LIMIT 10;
Enable Bi Engine on critical datasets, turn on Persistent Derived Tables (PDTs) with scheduled builds, and use aggregate awareness to reduce scan costs.
Store the service-account JSON in Looker’s encrypted secrets manager, restrict its IAM roles to read-only, and rotate keys annually.
Create a Looker Explore on the INFORMATION_SCHEMA.JOBS_BY_PROJECT
view to track query counts, bytes processed, and errors per Looker user.
Verify the service account has bigquery.jobs.create
permission, confirm the project ID matches, and check that private IP restrictions are not blocking Looker.
Yes. Set use_standard_sql: "yes"
in the connection’s additional_params
. LookML explores automatically use Standard SQL.
Absolutely. Grant the service account access only to the required datasets and deny project-wide roles. This limits surface area and cost.
Open the BigQuery console, choose the project, click Bi Engine, and allocate memory to the datasets serving Looker. Re-run explores to leverage caching.