I'm working on a project with python3 and BigQuery and i encountered a strange behavior in google-cloud-bigquery library. When i exec simple query like:
select * from my.project where field1="foo" and field2="bar"
The program running well but when I try to use a more "complex" query like:
with a as (...),b as(...)
select * from a as a_el
select * from b as b_el
join b_el on a_el.field1 = b_el.field1 ...
The program crash with:
google.api_core.exceptions.PermissionDenied: 403 request failed: the user does not have 'bigquery.readsession.create' permission
So, I know this is a permission problem but my question is: what's the difference under the hood? Why extra permission are needed? The tables are in the same project, so where is the problem?
I use query() method for execute queries