Fix experimental_reduced_joins (#3993)

The original diff had an important exclusionary branch commented out,
causing events table to be queried for breakdowns with the flag off
This commit is contained in:
Karl-Aksel Puulmann 2024-04-09 18:45:03 +03:00 committed by GitHub
parent 441412a164
commit ceaf2e1f79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,7 +213,7 @@ defmodule Plausible.Stats.Breakdown do
end
# Backwards compatibility
# defp breakdown_table(%Query{experimental_reduced_joins?: false}, _, _), do: :session
defp breakdown_table(%Query{experimental_reduced_joins?: false}, _, _), do: :session
defp breakdown_table(_query, _metrics, "visit:entry_page"), do: :session
defp breakdown_table(_query, _metrics, "visit:entry_page_hostname"), do: :session