Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
aspicer committed Jun 20, 2024
1 parent 0da0dfe commit ad5d43a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions posthog/hogql/database/schema/persons.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def select_from_persons_table(join_or_table: LazyJoinToAdd | LazyTableToAdd, con
HAVING equals(argMax(raw_persons.is_deleted, raw_persons.version), 0)
AND argMax(raw_persons.created_at, raw_persons.version) < now() + interval 1 day
)
"""
if "person_ids" in node.type.ctes
else """
Expand All @@ -76,7 +75,7 @@ def select_from_persons_table(join_or_table: LazyJoinToAdd | LazyTableToAdd, con
GROUP BY id
HAVING equals(argMax(raw_persons.is_deleted, raw_persons.version), 0)
AND argMax(raw_persons.created_at, raw_persons.version) < now() + interval 1 day
)
)
"""
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ def _create_test_events(self):
]
)

def select(self, query: str, placeholders: Optional[dict[str, Any]] = None, modifiers: dict = {}):
def select(self, query: str, placeholders: Optional[dict[str, Any]] = None, modifiers: dict = None):
if placeholders is None:
placeholders = {}
return execute_hogql_query(
query=query,
team=self.team,
placeholders=placeholders,
modifiers=HogQLQueryModifiers(**modifiers),
modifiers=HogQLQueryModifiers(**modifiers) if modifiers else None,
)

@snapshot_clickhouse_queries
Expand Down

0 comments on commit ad5d43a

Please sign in to comment.