fix: fix SQL syntax error in getPageviewExpandedMetrics query

This commit is contained in:
Travis Zhang 2025-11-25 21:13:35 +08:00 committed by GitHub
parent aaa1f9dc58
commit 67e1af7e55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ async function relationalQuery(
sum(${getTimestampDiffSQL('t.min_time', 't.max_time')}) as "totaltime" sum(${getTimestampDiffSQL('t.min_time', 't.max_time')}) as "totaltime"
from ( from (
select select
${column} name, ${column} as name,
website_event.session_id, website_event.session_id,
website_event.visit_id, website_event.visit_id,
count(*) as "c", count(*) as "c",
@ -101,7 +101,7 @@ async function relationalQuery(
and website_event.event_type != 2 and website_event.event_type != 2
${excludeDomain} ${excludeDomain}
${filterQuery} ${filterQuery}
group by name, website_event.session_id, website_event.visit_id group by ${column}, website_event.session_id, website_event.visit_id
) as t ) as t
where name != '' where name != ''
group by name group by name