Skip to content

Commit

Permalink
Added the persons query to trends query
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilbert09 committed Nov 10, 2023
1 parent 1d2b727 commit d79002a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ 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
self._selects = []
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)

Expand Down

0 comments on commit d79002a

Please sign in to comment.