Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BigQuery executing only one query

I'm trying to run a query in the UI, but I get the error:

Error: 6.1 - 0.0: Only one query can be executed at a time.

I don't think there is any other queries running, and this has lasted for a while now. Surely it can handle more than one query at a time?? How long will this be stuck? How can I turn bigquery off and on again :p

enter image description here

like image 649
Tjorriemorrie Avatar asked Nov 11 '14 11:11

Tjorriemorrie


People also ask

How to run BigQuery queries one after another?

You can use method 2 to chain the BigQuery queries. BigQuery’s query scheduler can be used to run the queries one after another. Idea is that we start the process the same as we did in method 1, i.e. trigger the first query using a scheduler and estimate its time for completion. Let’s say the first query takes 5 minutes to complete.

What is a BigQuery statement?

Query statements scan one or more tables or expressions and return the computed result rows. This topic describes the syntax for SQL queries in BigQuery.

What is the difference between BigQuery and value table?

In a value table, the row type is just a single value, and there are no column names. Note: In BigQuery, a query can only return a value table with a type of STRUCT. In contexts where a query with exactly one column is expected, a value table query can be used instead.

What is the use of with clause in BigQuery?

Note: The WITH clause is used primarily for readability because they are not materialized. If a query appears in more than one WITH clause, it executes in each clause. Learn how to query datasets in BigQuery using SQL, save and share queries, and create views and materialized views.


1 Answers

This error means that the query string has been parsed as containing multiple queries. Check that you do not have multiple top-level SELECT statements in the query text box.

From the specific message, I would guess your second query begins on or around line 6.

like image 117
Danny Kitt Avatar answered Oct 19 '22 14:10

Danny Kitt