-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathview.sql
43 lines (43 loc) · 1.32 KB
/
view.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
-- Generated via ./bqetl generate glean_usage
CREATE OR REPLACE VIEW
`moz-fx-data-shared-prod.firefox_echo_show.baseline`
AS
SELECT
"org_mozilla_connect_firefox" AS normalized_app_id,
normalized_channel,
additional_properties,
client_info,
document_id,
events,
metadata,
STRUCT(
STRUCT(metrics.counter.glean_validation_metrics_ping_count) AS `counter`,
STRUCT(
metrics.labeled_counter.glean_error_invalid_label,
metrics.labeled_counter.glean_error_invalid_overflow,
metrics.labeled_counter.glean_error_invalid_state,
metrics.labeled_counter.glean_error_invalid_value,
metrics.labeled_counter.glean_validation_pings_submitted
) AS `labeled_counter`,
STRUCT(
metrics.string.glean_baseline_locale,
metrics.string.glean_client_annotation_experimentation_id
) AS `string`,
STRUCT(metrics.timespan.glean_baseline_duration) AS `timespan`,
STRUCT(
metrics.datetime.glean_validation_first_run_hour,
metrics.datetime.raw_glean_validation_first_run_hour
) AS `datetime`
) AS `metrics`,
normalized_app_name,
normalized_country_code,
normalized_os,
normalized_os_version,
ping_info,
sample_id,
submission_timestamp,
app_version_major,
app_version_minor,
app_version_patch
FROM
`moz-fx-data-shared-prod.org_mozilla_connect_firefox.baseline`