28 строки
622 B
SQL
28 строки
622 B
SQL
{{ header }}
|
|
CREATE TABLE IF NOT EXISTS
|
|
`moz-fx-data-shared-prod.glam_etl.fenix_clients_histogram_aggregates_v1`(
|
|
sample_id INT64,
|
|
client_id STRING,
|
|
ping_type STRING,
|
|
os STRING,
|
|
app_version INT64,
|
|
app_build_id STRING,
|
|
channel STRING,
|
|
histogram_aggregates ARRAY<
|
|
STRUCT<
|
|
latest_version INT64,
|
|
metric STRING,
|
|
metric_type STRING,
|
|
key STRING,
|
|
agg_type STRING,
|
|
value ARRAY<STRUCT<key STRING, value INT64>>
|
|
>
|
|
>
|
|
)
|
|
PARTITION BY
|
|
RANGE_BUCKET(sample_id, GENERATE_ARRAY(0, 100, 1))
|
|
CLUSTER BY
|
|
app_version,
|
|
channel,
|
|
client_id
|