Skip to content

Commit

Permalink
fix manual snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Mar 28, 2024
1 parent eba1db4 commit cc6c778
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions posthog/hogql/test/test_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,12 @@ def test_visit_hogqlx_tag_source(self):
node = cast(ast.SelectQuery, resolve_types(self._select(query), self.context, dialect="hogql"))
hogql = print_prepared_ast(node, HogQLContext(team_id=self.team.pk, enable_select_queries=True), "hogql")
expected = (
f"SELECT id, email FROM "
f"(SELECT id, properties.email AS email FROM persons INNER JOIN "
f"(SELECT DISTINCT person_id FROM events) "
f"AS source ON equals(persons.id, source.person_id) ORDER BY id ASC) "
f"LIMIT 10000"
"SELECT id, email FROM "
"(SELECT id, properties.email AS email FROM "
"(SELECT DISTINCT person_id FROM events) "
"AS source INNER JOIN "
"persons ON equals(persons.id, source.person_id) ORDER BY id ASC) "
"LIMIT 10000"
)

assert hogql == expected

0 comments on commit cc6c778

Please sign in to comment.