Skip to content

Commit

Permalink
Properly handle distinct ids that aren't distinct_id
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Dec 12, 2024
1 parent e2f957d commit 0b7e289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/warehouse/models/join.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _join_function_for_experiments(
]
),
op=ast.CompareOperationOp.Eq,
right=ast.Field(chain=[join_to_add.to_table, "distinct_id"]),
right=ast.Field(chain=[join_to_add.to_table, *self.joining_table_key.split(".")]),
),
ast.CompareOperation(
left=ast.Field(
Expand Down

0 comments on commit 0b7e289

Please sign in to comment.