Do not forget to modify the parent page within the macro.
Use Standard SQLAt the beginning Google proposed a query language that called legacy SQL. This language was close to the classic SQL. Then Google decided to propose another language called standard SQL. This language is closer to SQL than legacy and allows generally more functionalities. Moreover this language is pushed by Google and Google won’t maintain 2 languages that’s why the first advice is use standard SQL For going further I invite you to read this page : https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sqlIf you uncheck the box in yellow you activate standard SQLAdd a header in each planned queryWhen a query is launched inside a program (dataflow, Apps script, python….) please add a header to describe the query. That's really important for log analysis and because the cost is directly linked on the database use. So its better if we can detect queries that are not used anymore.You can find the header description below :
Example :/*============================================================*//*project : SolvIA - program : Apps script *//*function : load_daily_freshdesk_tickets */ |
rights : the finest restriction level available in BQ is done on datasets, so if you need to restrict access to the data you should create a copy of your data into another dataset.
set of relevant tables : in the dataset try to group a set of relevant tables by notion by project something with sense
Data life time : in the dataset you can define the table life duration. It’s really usefull for dataset to do tests.
Saved Dataset : The service is managed and ensure the data can’t be loose by hardware issue. But it doesn’t convert the user issue. That’s why for the important table it’s good to provide a save of this table into a specific dataset where the expiration date is set in order to keep only one month of saves..
Logs Dataset : it’s just a note to remind that BigQuery is a good database to store logs.
BigQuery