Fixed PostgreSQL 12/13 syntax error in Journeys feature

This commit is contained in:
SBOZH 2026-01-01 15:53:20 +01:00
parent 860e6390f1
commit 8286af1453

View file

@ -119,7 +119,7 @@ async function relationalQuery(
select distinct select distinct
website_event.visit_id, website_event.visit_id,
website_event.referrer_path, website_event.referrer_path,
coalesce(nullIf(website_event.event_name, ''), website_event.url_path) event, coalesce(nullIf(website_event.event_name, ''), website_event.url_path) "event",
row_number() OVER (PARTITION BY visit_id ORDER BY website_event.created_at) AS event_number row_number() OVER (PARTITION BY visit_id ORDER BY website_event.created_at) AS event_number
from website_event from website_event
${cohortQuery} ${cohortQuery}