From 039480a0d14186f2f3f13da030dd7a7c39f50673 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Fri, 6 Nov 2020 13:59:45 +0200 Subject: [PATCH] Fix bug when filtering for goal and session prop --- lib/plausible/stats/clickhouse.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible/stats/clickhouse.ex b/lib/plausible/stats/clickhouse.ex index 85c02d6a7..63f6878f7 100644 --- a/lib/plausible/stats/clickhouse.ex +++ b/lib/plausible/stats/clickhouse.ex @@ -697,7 +697,7 @@ defmodule Plausible.Stats.Clickhouse do none = ClickhouseRepo.all( from e in base_query_w_sessions(site, query), - where: fragment("not has(meta.key, ?)", ^key), + where: fragment("not has(?.key, ?)", e.meta, ^key), select: %{ name: "(none)", count: fragment("uniq(?) as count", e.user_id),