I would like to run 2 Select parameters using the bigquery API. for example, if I run the below query
SELECT 1;
SELECT 2;
When I run this using the following python script I only obtain the result of 2nd query.
def runquery();
bqclient = bigquery.client()
query = """ SELECT 1;
SELECT 2;"""
query_job = bqclient.query(query)
data = query_job.result()
rows = list(data)
print(rows)
Result:
[Row((2,), {'f0_': 0})]
But if I run the same query in bigquery query composer I would be able to view both the result.
How would I be able to get both the query results in Bigquery API resultset? Would I need to add a jobconfig to client.query() statement?
