You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exports[`buildInsightsSurveySql > groups > sql 1`] =`
3
+
exports[`SurveyInsightsSqlBuilder > groups > sql 1`] =`
4
4
"select
5
-
to_char(date_trunc('day', "SurveyResult"."createdAt" at time zone 'UTC'), 'YYYY-MM-DD') date,
6
-
"payload" ->> 'rating' as "%rating" , count(1) as "$all_event"
7
-
from "SurveyResult"
8
-
9
-
where "SurveyResult"."surveyId" = 'cm658i2tqw96upkejldn8rpbs' AND "SurveyResult"."createdAt" between '2025-02-10T16:00:00.000Z'::timestamptz and '2025-03-13T15:59:59.999Z'::timestamptz
10
-
group by 1 , 2"
5
+
to_char(date_trunc('day', "SurveyResult"."createdAt" at time zone 'UTC'), 'YYYY-MM-DD') date,
6
+
"SurveyResult"."payload" ->> 'rating' as "%rating" , count(1) as "$all_event"
7
+
from "SurveyResult"
8
+
9
+
where "SurveyResult"."surveyId" = 'cm658i2tqw96upkejldn8rpbs' AND "SurveyResult"."createdAt" between '2025-02-10T16:00:00.000Z'::timestamptz and '2025-03-13T15:59:59.999Z'::timestamptz
10
+
group by 1 , 2"
11
11
`;
12
12
13
-
exports[`buildInsightsSurveySql > groups with custom bucket > sql 1`] =`
13
+
exports[`SurveyInsightsSqlBuilder > groups with custom bucket > sql 1`] =`
14
14
"select
15
-
to_char(date_trunc('day', "SurveyResult"."createdAt" at time zone 'UTC'), 'YYYY-MM-DD') date,
16
-
("SurveyResult"."payload"->> 'rating') IN ('1' , '2' , '3') as "%rating|in list|1,2,3" , count(1) as "$all_event"
17
-
from "SurveyResult"
18
-
19
-
where "SurveyResult"."surveyId" = 'cm658i2tqw96upkejldn8rpbs' AND "SurveyResult"."createdAt" between '2025-02-10T16:00:00.000Z'::timestamptz and '2025-03-13T15:59:59.999Z'::timestamptz
20
-
group by 1 , 2"
15
+
to_char(date_trunc('day', "SurveyResult"."createdAt" at time zone 'UTC'), 'YYYY-MM-DD') date,
16
+
("SurveyResult"."payload"->> 'rating') IN ('1' , '2' , '3') as "%rating|in list|1,2,3" , count(1) as "$all_event"
17
+
from "SurveyResult"
18
+
19
+
where "SurveyResult"."surveyId" = 'cm658i2tqw96upkejldn8rpbs' AND "SurveyResult"."createdAt" between '2025-02-10T16:00:00.000Z'::timestamptz and '2025-03-13T15:59:59.999Z'::timestamptz
0 commit comments