I am able to load data into Google cloud storage from Google BigQuery by using python client library, but when I'm trying to load the data using cloud SDK I'm getting below error.
"Access Denied: BigQuery BigQuery: Permission denied while writing data"
This is the CLI command I'm using
bq --location=US extract --compression GZIP "project_id:dataset_d.table_if" gs://bucket_name/2019-03-31/temporary_table*.csv
In addition, I was not able to get the proper status of my job using a Python client library. Python is only giving me "DONE" status whether the job is "SUCCESS" or "FAILURE". The bq tool is more comfortable in getting the status response that's why I'm switching to it.