-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
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!