Closed Bug 1721878 Opened 5 years ago Closed 5 years ago

Data missing from clients_daily from 2017-01-01 through 2018-10-29

Categories

(Data Platform and Tools :: General, defect, P1)

defect
Points:
3

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: klukas, Assigned: klukas)

References

Details

Attachments

(2 files)

As part of https://bugzilla.mozilla.org/show_bug.cgi?id=1716074 I ran a backfill of clients_daily_v6 from main_v4 for all dates starting at 2017-01-01. This ran during the Wellness week (last week of June).

I had forgotten, however, that main_v4 only reaches back to 2018-10-30, so all the earlier dates ended up empty. I did not do sufficient validation to notice this, and :benwu just alerted me to the problem.

We are BigQuery's built-in 7-day retention period, so we cannot simply roll back those partitions to their previous state. I see two options for recovery:

  1. Rerun the empty partitions, using a previous version of the clients_daily_v6 query which targeted main_summary, or
  2. Backfill by querying clients_last_seen; that table contains a superset of the clients_daily fields, so we should be able to craft a SELECT statement that recreates clients_daily.

Option (2) is likely cheaper in terms of compute time and data scanned, and also is likely easier to implement. I will pursue that route.

Specifically, the query will look like: ``` SELECT submission_date, client_id, aborts_content_sum, ... FROM `moz-fx-data-shared-prod.telemetry_derived.clients_last_seen_v1` WHERE submission_date = @submission_date -- Only include clients seen today. AND mozfun.bits28.days_since_seen(days_seen_bits) = 0 ```
Attached file full query
Accidental double-post.

I've started this backfill from 2018-10-29 backwards, using the moz-fx-data-backfill-slots project.

I've completed a backfill for 2017-01-01 to 2018-10-29. clients_daily now looks continuous over those boundaries.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Component: Datasets: General → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: