fix clickhouse calls

This commit is contained in:
Brian Cao 2022-09-23 22:29:54 -07:00
parent dfac7e1af5
commit c6aefd7e6d
10 changed files with 41 additions and 34 deletions

View file

@ -52,7 +52,8 @@ async function clickhouseQuery(
${getDateQuery('created_at', unit, timezone)} t,
count(*) y
from event
where website_id= $1
where event_name != ''
and website_id= $1
and ${getBetweenDates('created_at', start_at, end_at)}
${getFilterQuery('event', filters, params)}
group by x, t