This commit is contained in:
Frank Bertsch 2021-03-01 16:55:16 +00:00
Родитель cb277ea6ce
Коммит 1bfbbafff6
4 изменённых файлов: 109 добавлений и 1 удалений

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

@ -1,5 +1,5 @@
view: baseline {
sql_table_name: `moz-fx-data-shared-prod.org_mozilla_ios_firefox.baseline`
sql_table_name: `moz-fx-data-shared-prod.org_mozilla_ios_firefox{% parameter channel %}.baseline`
;;
dimension: additional_properties {

0
user_journey/.gitkeep Normal file
Просмотреть файл

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

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

@ -0,0 +1,108 @@
# Un-hide and use this explore, or copy the joins into another explore, to get all the fully nested relationships from this view
explore: events_daily {
hidden: yes
join: events_daily__experiments {
view_label: "Events Daily: Experiments"
sql: LEFT JOIN UNNEST(${events_daily.experiments}) as events_daily__experiments ;;
relationship: one_to_many
}
}
view: events_daily {
sql_table_name: `mozdata.messaging_system.events_daily`
;;
dimension: addon_version {
type: string
sql: ${TABLE}.addon_version ;;
}
dimension: app_version {
type: string
sql: ${TABLE}.app_version ;;
}
dimension: city {
type: string
sql: ${TABLE}.city ;;
}
dimension: client_id {
type: string
sql: ${TABLE}.client_id ;;
}
dimension: country {
type: string
map_layer_name: countries
sql: ${TABLE}.country ;;
}
dimension: events {
type: string
sql: ${TABLE}.events ;;
}
dimension: experiments {
hidden: yes
sql: ${TABLE}.experiments ;;
}
dimension: locale {
type: string
sql: ${TABLE}.locale ;;
}
dimension: normalized_channel {
type: string
sql: ${TABLE}.normalized_channel ;;
}
dimension: os {
type: string
sql: ${TABLE}.os ;;
}
dimension: sample_id {
type: number
sql: ${TABLE}.sample_id ;;
}
dimension: subdivision1 {
type: string
sql: ${TABLE}.subdivision1 ;;
}
dimension_group: submission {
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
datatype: date
sql: ${TABLE}.submission_date ;;
}
measure: count {
type: count
drill_fields: []
}
}
view: events_daily__experiments {
dimension: key {
type: string
sql: ${TABLE}.key ;;
}
dimension: value {
type: string
sql: ${TABLE}.value ;;
}
}