Skip to content

Commit

Permalink
don't star select (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE committed Oct 12, 2020
1 parent 7c25726 commit 0f3e588
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ee/clickhouse/sql/retention.py
Expand Up @@ -6,7 +6,9 @@
datediff(%(period)s, first_event_date.first_date, {trunc_func}(toDateTime(timestamp))) as date,
COUNT(DISTINCT events.person_id) count
FROM (
SELECT *
SELECT
timestamp,
person_id
from events e join person_distinct_id pdi on e.distinct_id = pdi.distinct_id
where toDateTime(e.timestamp) >= toDateTime(%(start_date)s) AND toDateTime(e.timestamp) <= toDateTime(%(end_date)s)
AND e.team_id = %(team_id)s {target_query} {filters}
Expand Down

0 comments on commit 0f3e588

Please sign in to comment.