Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add init clause to ga_clients table #4611

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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