-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathview.sql
33 lines (33 loc) · 894 Bytes
/
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
-- Generated via ./bqetl generate glean_usage
CREATE OR REPLACE VIEW
`moz-fx-data-shared-prod.mach.events`
AS
SELECT
"mozilla_mach" AS normalized_app_id,
normalized_channel,
additional_properties,
client_info,
document_id,
events,
metadata,
STRUCT(
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
) AS `labeled_counter`,
STRUCT(metrics.string.glean_client_annotation_experimentation_id) AS `string`
) 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.mozilla_mach.events`