Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P11190
(An Untitled Masterwork)
Active
Public
Actions
Authored by
nshahquinn-wmf
on May 13 2020, 4:51 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F31816010: raw.txt
May 13 2020, 4:51 PM
2020-05-13 16:51:16 (UTC+0)
Subscribers
None
switches_r
=
hive
.
run
(
"""
select
date,
editor,
sum(cast(switches >= 1 as int)) / count(*) as sessions_with_switches
from (
select
date_format(dt, "yyyy-MM-dd") as date,
event.editing_session_id as editingsessionid,
concat(event.platform, " ", event.editor_interface) as editor
from event.editattemptstep
where
event.action = "ready" and
year = 2019 and (
(month = 6 and day > 23) or
(month = 7)
)
) readies
left join (
select
event.editingsessionid as editingsessionid,
count(*) as switches
from event.visualeditorfeatureuse
where
event.feature = "editor-switch" and
year = 2019 and (
(month = 6 and day > 23) or
(month = 7)
)
group by event.editingsessionid
) switches
on readies.editingsessionid = switches.editingsessionid
group by date, editor
"""
)
Event Timeline
nshahquinn-wmf
created this paste.
May 13 2020, 4:51 PM
2020-05-13 16:51:16 (UTC+0)
Log In to Comment