Table to Storage: SQL file
📋 Global SQL pattern
Column
Descriptions
👁️🗨️ First SQL example
SELECT
CURRENT_TIMESTAMP() AS timestamp,
CONCAT(
"tailer-activities-runs",
"|", REPLACE(account, "|", "_"), -- do not forget to replace any potential pipes!
"|", REPLACE(configuration_type, "|", "_"),
"|", REPLACE(configuration_id, "|", "_"),
"|", "freshness",
"|", "job_id",
"|", REPLACE(job_id, "|", "_"),
"|", "next_execution"
) AS firestore_path,
-- here starts the "other variables"
account,
configuration_type,
configuration_id,
job_id,
CONCAT("freshness_", job_id) AS collection_groupe_name,
last_execution_datetime,
next_execution_datetime,
frequence,
status
FROM
`tailer-demo.dlk_tailer_bda_freshness.metrics`
WHERE
(1 = 1) -- you could add filters here

👁️🗨️ Example 2: create a list in the document
Variables
Descriptions

Last updated