mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 02:24:55 +03:00
Carry _sample_factor from right side to left in join (#2962)
This commit is contained in:
parent
1a94456586
commit
6be67bc6c2
@ -424,7 +424,10 @@ defmodule Plausible.Stats.Base do
|
||||
if Query.has_event_filters?(query) do
|
||||
converted_sessions =
|
||||
from(e in query_events(site, query),
|
||||
select: %{session_id: fragment("DISTINCT ?", e.session_id)}
|
||||
select: %{
|
||||
session_id: fragment("DISTINCT ?", e.session_id),
|
||||
_sample_factor: fragment("_sample_factor")
|
||||
}
|
||||
)
|
||||
|
||||
from(s in db_query,
|
||||
|
Loading…
Reference in New Issue
Block a user