When doing a query using SDK\'s CLI like this:
bq query \"select * from [project]:[dataset].[table]\"
Response is:
BigQuery error in query operatio
Had similar issue today. Tried to re-enable BigQuery API, and it works now. But most likely, the problem was on Google's side:
July 26, 2017 Google BigQuery reporting issues
Let's say your project name is "bq-project". So you created a dataset called "bq-dataset". There are a lot of tables "table1,table2,table3". So you need to retrieve table1 data. First, You can try this via big query web UI.
SELECT * from bq-project.bq-dataset.table1
Double check that you have enabled the BigQuery API via the console.
https://console.cloud.google.com/apis/api/bigquery-json.googleapis.com/overview?project=<your-project-id>&duration=PT1H
First, as mentioned in early comments and answers, ensure that you have enabled the BigQuery API.
If you still get the same error message, you are most likely using the project name where you should be using the project id.
The project id is the project name followed by a number, and you should be able to find it using the Console.
If you are sure you have the API enabled and the id and the name sorted correctly, try checking the Google Cloud Status Dashboard for any ongoing BigQuery outages.