I am new to BigQuery GCP and to access BigQuery data we are using Spotify spark-bigquery connector as provided here.
We are able to use sqlContext.bigQueryTable("project_id:dataset.table")
and its working.
When we are using sqlContext.bigQuerySelect("SELECT * FROM [project_id:dataset.table]")
it is giving error:
The user [email protected] does not have permission to query table.
We have done necessary settings w.r.t json file and location. But don't have any clue about from where it is taking this user account details.
Please provide help regarding its cause and how to fix it in code.