Advertisement
kirzecy670

Untitled

Jul 8th, 2025
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Пользователи с forced group installation
  2. forced_group_installation_users AS (
  3.     SELECT uid as uid
  4.     FROM stat.funnelTrack
  5.     WHERE dt >= '2025-06-16'
  6.       AND action = 'forced_group_installation'
  7.       AND deviceType = 1
  8.       AND appVersion >= 2009141
  9.       AND (
  10.           visitParamExtractString(addJson, 'experimentId') = 'android_gmd_57483_newApp_v01_ru_experiment'
  11.           OR visitParamExtractString(addJson, 'experiment') = 'ios_gmd_57484_newApp_v01_ru_experiment'
  12.       )
  13. ),
  14.  
  15. -- Только реальные участники эксперимента (без форсированных)
  16. new_ui_users AS (
  17.     SELECT uid
  18.     FROM stat.funnelTrack
  19.     WHERE dt >= '2025-06-16'
  20.       AND action IN (
  21.           'android_gmd_57483_newApp_v01_ru_experiment',
  22.           'ios_gmd_57484_newApp_v01_ru_experiment'
  23.       )
  24.       AND deviceType = 1
  25.       AND appVersion >= 2009141
  26.       AND visitParamExtractString(addJson, 'option') = 'new'
  27. ),
  28.  
  29. AND (ts < '2025-06-16' OR uid IN (SELECT uid FROM new_ui_users))
  30. AND uid NOT IN (SELECT uid FROM forced_group_installation_users)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement