Skip to content

Commit

Permalink
Remove unused breakdown query variables (#5655)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar authored Aug 19, 2021
1 parent 0f58482 commit b484d34
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions ee/clickhouse/sql/trends/breakdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,12 @@
AND breakdown_value in (%(values)s) {actions_query}
"""

NONE_BREAKDOWN_PERSON_PROP_JOIN_SQL = """
INNER JOIN (
SELECT * FROM ({latest_person_sql}) ep WHERE team_id = %(team_id)s AND NOT JSONHas(properties, %(key)s)
) ep
ON person_id = ep.id WHERE e.team_id = %(team_id)s {event_filter} {filters} {parsed_date_from} {parsed_date_to}
{actions_query}
"""

BREAKDOWN_PROP_JOIN_SQL = """
WHERE e.team_id = %(team_id)s {event_filter} {filters} {parsed_date_from} {parsed_date_to}
AND {breakdown_value_expr} in (%(values)s)
{actions_query}
"""

NONE_BREAKDOWN_PROP_JOIN_SQL = """
WHERE e.team_id = %(team_id)s {event_filter} {filters} {parsed_date_from} {parsed_date_to}
AND NOT JSONHas(properties, %(key)s)
{actions_query}
"""

BREAKDOWN_COHORT_JOIN_SQL = """
INNER JOIN (
{cohort_queries}
Expand Down

0 comments on commit b484d34

Please sign in to comment.