mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 01:22:15 +03:00
Fix: Add missing SAMPLE BY to query (#4880)
* Fix: Add missing SAMPLE BY to query * Update lib/plausible/stats/sql/query_builder.ex
This commit is contained in:
parent
87b65aefd7
commit
0c8fed9570
@ -63,6 +63,10 @@ defmodule Plausible.Stats.SQL.QueryBuilder do
|
||||
group_by: s.session_id
|
||||
)
|
||||
|
||||
on_ee do
|
||||
sessions_q = Plausible.Stats.Sampling.add_query_hint(sessions_q, query)
|
||||
end
|
||||
|
||||
from(
|
||||
e in q,
|
||||
join: sq in subquery(sessions_q),
|
||||
|
Loading…
Reference in New Issue
Block a user