I am unable to run a query against INFORMATION_SCHEMA.TABLE_STORAGE in BigQuery.
Details
- All queries are executed from the BigQuery Studio query editor.
- I (the executor) have the Owner role assigned to my IAM on the project.
- Almost all datasets and tables are located in the US region.
What I Tried
- SELECT * FROM
region-us.INFORMATION_SCHEMA.TABLE_STORAGE → Encountered the error described below. - Changed the region to
region-us-central1andregion-asia-northeast1→ Error message remained the same. - Changed TABLE_STORAGE to TABLE_STORAGE_BY_PROJECT → Error message remained the same.
- Tried other similar schema about table storage: SELECT * FROM
region-us.INFORMATION_SCHEMA.TABLE_STORAGE_USAGE_TIMELINE → Error message remained the same. - Tried other region-specific schema: SELECT * FROM
region-us.INFORMATION_SCHEMA.JOBS → Executed without any issues.
Error Message
Access Denied: Table MY-PROJECT:region-us.INFORMATION_SCHEMA.TABLE_STORAGE: User does not have permission to query table MY-PROJECT:region-us.INFORMATION_SCHEMA.TABLE_STORAGE, or perhaps it does not exist.
Any help would be greatly appreciated.