Fix #2274 - Nest schemas under field object in glam queries (#2275)

* Update schema to be nested under field object

* Update schemas for glam-fenix-dev
This commit is contained in:
Anthony Miyaguchi 2021-08-20 12:49:55 -07:00 коммит произвёл GitHub
Родитель b5b10ec5bb
Коммит 08c406c384
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
48 изменённых файлов: 157 добавлений и 1 удалений

Просмотреть файл

@ -190,7 +190,7 @@ def update_schemas(project, dataset, src_dataset):
for path in sql_root.glob("*"):
print(f"fetching schema for {path.name}")
# we can update the schema with the development version of the schema
schema = get_schema(f"{src_dataset}.{path.name}", project)
schema = dict(fields=get_schema(f"{src_dataset}.{path.name}", project))
with (path / "schema.yaml").open("w") as fp:
yaml.dump(schema, fp)

Просмотреть файл

@ -434,6 +434,21 @@ histograms AS (
"timing_distribution",
metrics.timing_distribution.perf_startup_home_fragment_on_view_created.values
),
(
"performance_clone_deserialize_items",
"custom_distribution",
metrics.custom_distribution.performance_clone_deserialize_items.values
),
(
"performance_clone_deserialize_size",
"memory_distribution",
metrics.memory_distribution.performance_clone_deserialize_size.values
),
(
"performance_clone_deserialize_time",
"timing_distribution",
metrics.timing_distribution.performance_clone_deserialize_time.values
),
(
"performance_interaction_keypress_present_latency",
"timing_distribution",

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: sample_id
type: INTEGER

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -56,6 +56,34 @@ unlabeled_metrics AS (
'true',
SUM(CAST(metrics.boolean.addons_has_installed_addons AS INT64))
),
(
'android_autofill_enabled',
'boolean',
'',
'false',
SUM(CAST(NOT metrics.boolean.android_autofill_enabled AS INT64))
),
(
'android_autofill_enabled',
'boolean',
'',
'true',
SUM(CAST(metrics.boolean.android_autofill_enabled AS INT64))
),
(
'android_autofill_supported',
'boolean',
'',
'false',
SUM(CAST(NOT metrics.boolean.android_autofill_supported AS INT64))
),
(
'android_autofill_supported',
'boolean',
'',
'true',
SUM(CAST(metrics.boolean.android_autofill_supported AS INT64))
),
(
'avif_aom_decode_error',
'quantity',

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- name: sample_id
type: INTEGER
- name: client_id

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- name: client_id
type: STRING
- name: ping_type

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: sample_id
type: INTEGER

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: channel
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: channel
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: metric
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: ping_type
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: ping_type
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: channel
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: ping_type
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: ping_type
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: ping_type
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- name: sample_id
type: INTEGER
- name: client_id

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- name: client_id
type: STRING
- name: ping_type

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- name: ping_type
type: STRING
- name: os

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- name: ping_type
type: STRING
- name: os

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: sample_id
type: INTEGER

Просмотреть файл

@ -56,6 +56,34 @@ unlabeled_metrics AS (
'true',
SUM(CAST(metrics.boolean.addons_has_installed_addons AS INT64))
),
(
'android_autofill_enabled',
'boolean',
'',
'false',
SUM(CAST(NOT metrics.boolean.android_autofill_enabled AS INT64))
),
(
'android_autofill_enabled',
'boolean',
'',
'true',
SUM(CAST(metrics.boolean.android_autofill_enabled AS INT64))
),
(
'android_autofill_supported',
'boolean',
'',
'false',
SUM(CAST(NOT metrics.boolean.android_autofill_supported AS INT64))
),
(
'android_autofill_supported',
'boolean',
'',
'true',
SUM(CAST(metrics.boolean.android_autofill_supported AS INT64))
),
(
'avif_aom_decode_error',
'quantity',

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- name: sample_id
type: INTEGER
- name: client_id

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- name: client_id
type: STRING
- name: ping_type

Просмотреть файл

@ -434,6 +434,21 @@ histograms AS (
"timing_distribution",
metrics.timing_distribution.perf_startup_home_fragment_on_view_created.values
),
(
"performance_clone_deserialize_items",
"custom_distribution",
metrics.custom_distribution.performance_clone_deserialize_items.values
),
(
"performance_clone_deserialize_size",
"memory_distribution",
metrics.memory_distribution.performance_clone_deserialize_size.values
),
(
"performance_clone_deserialize_time",
"timing_distribution",
metrics.timing_distribution.performance_clone_deserialize_time.values
),
(
"performance_interaction_keypress_present_latency",
"timing_distribution",

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: sample_id
type: INTEGER

Просмотреть файл

@ -56,6 +56,34 @@ unlabeled_metrics AS (
'true',
SUM(CAST(metrics.boolean.addons_has_installed_addons AS INT64))
),
(
'android_autofill_enabled',
'boolean',
'',
'false',
SUM(CAST(NOT metrics.boolean.android_autofill_enabled AS INT64))
),
(
'android_autofill_enabled',
'boolean',
'',
'true',
SUM(CAST(metrics.boolean.android_autofill_enabled AS INT64))
),
(
'android_autofill_supported',
'boolean',
'',
'false',
SUM(CAST(NOT metrics.boolean.android_autofill_supported AS INT64))
),
(
'android_autofill_supported',
'boolean',
'',
'true',
SUM(CAST(metrics.boolean.android_autofill_supported AS INT64))
),
(
'avif_aom_decode_error',
'quantity',

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- mode: NULLABLE
name: client_id
type: STRING

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- name: sample_id
type: INTEGER
- name: client_id

Просмотреть файл

@ -1,3 +1,4 @@
fields:
- name: client_id
type: STRING
- name: ping_type