From d79002a1eb45c65f91d1fa392a70a718c58289d3 Mon Sep 17 00:00:00 2001 From: Tom Owers Date: Mon, 30 Oct 2023 16:14:58 +0000 Subject: [PATCH] Added the persons query to trends query --- .../hogql_queries/insights/trends/aggregation_operations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql_queries/insights/trends/aggregation_operations.py b/posthog/hogql_queries/insights/trends/aggregation_operations.py index 38ca1cec71c4e..e0a0efbb21321 100644 --- a/posthog/hogql_queries/insights/trends/aggregation_operations.py +++ b/posthog/hogql_queries/insights/trends/aggregation_operations.py @@ -13,7 +13,7 @@ class QueryAlternator: _group_bys: List[ast.Expr] _select_from: ast.JoinExpr | None - def __init__(self, query: ast.SelectQuery | ast.SelectUnionQuery): + def __init__(self, query: ast.SelectQuery): assert isinstance(query, ast.SelectQuery) self._query = query @@ -21,7 +21,7 @@ def __init__(self, query: ast.SelectQuery | ast.SelectUnionQuery): self._group_bys = [] self._select_from = None - def build(self) -> ast.SelectQuery | ast.SelectUnionQuery: + def build(self) -> ast.SelectQuery: if len(self._selects) > 0: self._query.select.extend(self._selects)