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
SELECT date_trunc('month', instance_started)::dateas month_started, count(*) AS"total_instances",
avg(ts-instance_started) as avg_runtime,
avg((stats->'user'->'users'->>'active')::int) as avg_active_users,
percentile_disc(0.9) within group (order by (stats->'user'->'users'->>'active')::int) as p90_active_users,
avg((stats->'question'->'questions'->>'total')::int) as avg_questions,
percentile_disc(0.9) within group (order by (stats->'question'->'questions'->>'total')::int) as p90_questions,
max((stats->'question'->'questions'->>'total')::int) as max_questions
FROM"public"."usage_stats"WHERE (("public"."usage_stats"."instance_started" BETWEEN timestamp
with time zone '2019-01-01 00:00:00.000-08:00'AND NOW()) AND ts-instance_started < INTERVAL '30 days')
GROUP BY1ORDER BY1ASC;
Error message
"net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: \"BETWEEN\" \"BETWEEN\"
at line 9, column 51.
Was expecting one of:
\")\"
\".\"
\"::\"
\"[\"
\"^\"
The text was updated successfully, but these errors were encountered:
From the stats server:
Error message
The text was updated successfully, but these errors were encountered: