Skip to content

Commit

Permalink
fix: selecting from cohort people
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Sep 25, 2023
1 parent 7a8a268 commit 8721de7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions posthog/hogql/database/schema/cohort_people.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ def select_from_cohort_people_table(requested_fields: Dict[str, List[str]]):

table_name = "raw_cohort_people"

requested_fields = {"person_id": ["person_id"], "cohort_id": ["cohort_id"], **requested_fields}

fields: List[ast.Expr] = [
ast.Alias(alias=name, expr=ast.Field(chain=[table_name] + chain)) for name, chain in requested_fields.items()
]
fields: List[ast.Expr] = [ast.Field(chain=[table_name] + chain) for name, chain in requested_fields.items()]

return ast.SelectQuery(
select=fields,
Expand Down

0 comments on commit 8721de7

Please sign in to comment.