Skip to content

Pre-Aggregations with BigQuery: Access Denied despite persistent storage setup #9804

@huavanson

Description

@huavanson

I'm currently using Cube.js as the backend for a Synmetrix dashboard and I’ve encountered an issue related to pre-aggregations when using BigQuery as the datasource.

Even though I have already set up persistent storage and configured the CUBESTORE_REMOTE_DIR, I’m still getting the following error when Cube tries to build pre-aggregations:

Error: Access Denied: Project xxx-dev: User does not have bigquery.datasets.create permission in project xxx-dev.

Interestingly, this issue does not happen when using PostgreSQL as the datasource.

From my understanding, once pre-aggregations are built, Cube Store should store the results in the persistent storage (as Parquet files), and future queries from the frontend that match pre-aggregations should be handled entirely by Cube Store workers — without involving the original datasource (BigQuery in this case). So I'm confused why Cube.js is still trying to access BigQuery during the query phase.

Could you please confirm whether:

My understanding about how pre-aggregations are used (with Cube Store taking over the query execution) is correct, and

Why Cube.js still needs bigquery.datasets.create permissions even when persistent storage is set up?

Any insights or clarification would be greatly appreciated.

Thanks in advance!

Metadata

Metadata

Assignees

Labels

driver:bigqueryIssues related to the BigQuery driverpre-aggregationsIssues related to pre-aggregationsquestionThe issue is a question. Please use Stack Overflow for questions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions