From 133202c0f7500c6752c04a4fc435afe7fa0c069c Mon Sep 17 00:00:00 2001 From: yasmineDoghri6 <58326073+yasmineDoghri6@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:29:50 +0200 Subject: [PATCH] Feedback archived (#529) * add feedbacks archived per day * add the query of archived in main file * query archived feedbacks per day --- usage-analytics/create-analytics/feedbacks_archived_per_day.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usage-analytics/create-analytics/feedbacks_archived_per_day.sql b/usage-analytics/create-analytics/feedbacks_archived_per_day.sql index e156de62..284276bd 100644 --- a/usage-analytics/create-analytics/feedbacks_archived_per_day.sql +++ b/usage-analytics/create-analytics/feedbacks_archived_per_day.sql @@ -4,7 +4,7 @@ WITH JSON_EXTRACT_SCALAR(DATA, "$.archived") AS archived, DATE_TRUNC(TIMESTAMP_MILLIS(CAST(JSON_EXTRACT_SCALAR(DATA, "$.createdAt") AS INT)), DAY) AS day FROM - 'firestore_export.feedback_raw_latest' + `firestore_export.feedback_raw_latest` WHERE JSON_EXTRACT_SCALAR(DATA, "$.archived") != "0" ) SELECT