Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Can I process my query history within bigquery?

Can I get the queries run in my project’s query history, including the Bytes Billed, in some kind of select statement I can run in bigquery itself to do analysis?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You sure can!
Check out the INFORMATION_SCHEMA.JOBS_BY_* views

https://cloud.google.com/bigquery/docs/information-schema-jobs

There are various flavors including jobs by user, project, folder, organization.

They include the total_bytes_processed and total_bytes_billed as well.

Here is a sample query

SELECT
 job_id,
 total_bytes_billed
FROM
 `region-us`.INFORMATION_SCHEMA.JOBS_BY_PROJECT
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading