From ceaf2e1f7950f7d04c2bdded4e1118e1545036ca Mon Sep 17 00:00:00 2001 From: Karl-Aksel Puulmann Date: Tue, 9 Apr 2024 18:45:03 +0300 Subject: [PATCH] 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 --- lib/plausible/stats/breakdown.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible/stats/breakdown.ex b/lib/plausible/stats/breakdown.ex index 693ccfae4..110966c88 100644 --- a/lib/plausible/stats/breakdown.ex +++ b/lib/plausible/stats/breakdown.ex @@ -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