bigquery-etl/bigquery_etl/glean_usage/templates/baseline_clients_last_seen....

13 строки
254 B
SQL

{{ header }}
CREATE OR REPLACE VIEW
`{{ last_seen_view }}`
AS
SELECT
{% for ut in usage_types %}
`moz-fx-data-shared-prod`.udf.pos_of_trailing_set_bit(days_{{ ut }}_bits) AS days_since_{{ ut }},
{% endfor %}
*
FROM
`{{ last_seen_table }}`