From 8647cadd5b278177b9790fc5dea885ba816dcfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Semp=C3=A9?= Date: Thu, 8 Feb 2024 17:06:14 +0100 Subject: [PATCH] fix: Group scope for clickhouse store --- app/services/events/stores/clickhouse_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/events/stores/clickhouse_store.rb b/app/services/events/stores/clickhouse_store.rb index 3daf5b17c15..e87400bd02b 100644 --- a/app/services/events/stores/clickhouse_store.rb +++ b/app/services/events/stores/clickhouse_store.rb @@ -358,7 +358,7 @@ def group_scope(scope) scope = scope.where('events_raw.properties[?] = ?', group.key.to_s, group.value.to_s) return scope unless group.parent - scope.where('events_raw.properties[?] = ?', group.parent.key.to_s => group.parent.value.to_s) + scope.where('events_raw.properties[?] = ?', group.parent.key.to_s, group.parent.value.to_s) end def with_grouped_by_values(scope)