Skip to content

Commit

Permalink
fix(hogql): reverse join order for actors
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Mar 28, 2024
1 parent 668ea16 commit 0bd753d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions posthog/hogql_queries/actors_query_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ def source_table_join(self) -> ast.JoinExpr:
source_alias = "source"

return ast.JoinExpr(
table=ast.Field(chain=[self.strategy.origin]),
table=source_query,
alias=source_alias,
next_join=ast.JoinExpr(
table=source_query,
table=ast.Field(chain=[self.strategy.origin]),
join_type="INNER JOIN",
alias=source_alias,
constraint=ast.JoinConstraint(
expr=ast.CompareOperation(
op=ast.CompareOperationOp.Eq,
Expand Down

0 comments on commit 0bd753d

Please sign in to comment.