Skip to content

Commit

Permalink
Add init clause to ga_clients table (#4611)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbertsch authored and irrationalagent committed Dec 11, 2023
1 parent 28fdd20 commit 3ba4086
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ new_clients AS (
mozilla_org_derived.ga_sessions_v1
WHERE
ga_client_id IS NOT NULL
-- Re-process three days, to account for late-arriving data
AND session_date
BETWEEN DATE_SUB(@session_date, INTERVAL 3 DAY)
AND @session_date
{% if is_init() %}
AND session_date >= "2010-01-01"
{% else %}
-- Re-process three days, to account for late-arriving data
AND session_date
BETWEEN DATE_SUB(@session_date, INTERVAL 3 DAY)
AND @session_date
{% endif %}
GROUP BY
ga_client_id
)
Expand Down

0 comments on commit 3ba4086

Please sign in to comment.