fix(chalice): fixed product analytics query issue for old CH version (#3044)
This commit is contained in:
parent
def33daa6c
commit
4970bc365b
1 changed files with 2 additions and 2 deletions
|
|
@ -428,7 +428,7 @@ def path_analysis(project_id: int, data: schemas.CardPathAnalysis):
|
|||
SELECT event_number_in_session,
|
||||
`$event_name`,
|
||||
e_value,
|
||||
SUM(sessions_count) AS sessions_count
|
||||
SUM(n{i}.sessions_count) AS sessions_count
|
||||
FROM n{i}
|
||||
GROUP BY event_number_in_session, `$event_name`, e_value
|
||||
ORDER BY sessions_count DESC
|
||||
|
|
@ -594,7 +594,7 @@ FROM ranked_events
|
|||
NULL AS e_value,
|
||||
'OTHER' AS next_type,
|
||||
NULL AS next_value,
|
||||
SUM(sessions_count) AS sessions_count
|
||||
SUM(others_n.sessions_count) AS sessions_count
|
||||
FROM others_n
|
||||
WHERE isNotNull(others_n.next_type)
|
||||
AND others_n.event_number_in_session < %(density)s
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue