Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access “Saved Queries” programmatically?

Tags:

In BigQuery Web UI, there is a “Saved Queries” Section.
Is there way to access (read/write) those programmatically?
Any API?

like image 240
Mikhail Berlyant Avatar asked Jan 31 '16 01:01

Mikhail Berlyant


People also ask

How do I view saved queries in BigQuery?

View saved queries Saved query functionality is available only in the Google Cloud console. To view a saved query, open the BigQuery Google Cloud console, expand your project node in the Explorer panel, and then expand the Saved queries ( N ) node, where N indicates the number of saved queries in your project.

What is saved query?

A saved query is a component that you create to run SQL statements against a database. You can use a saved query as the source object in a. synchronization. task or as the query in an SQL transformation.

Is BigQuery free?

All customers get 10 GB storage and up to 1 TB queries free per month, not charged against their credits. BigQuery is at the core of Google's unified data cloud. Watch the demo to see how it works.


1 Answers

Nope. It's a UI-only feature with a private interface. But we'll consider this a feature request!

Update 2021: We recommend using scripts to save and share queries.

https://cloud.google.com/blog/products/data-analytics/command-and-control-now-easier-in-bigquery-with-scripting-and-stored-procedures

like image 105
Jeremy Condit Avatar answered Sep 21 '22 15:09

Jeremy Condit