@@ -60,13 +56,13 @@ class DmpGaEventTag extends CommonSparkJob with Serializable {
|case when t2.package_name is not null then t2.second_tag else 'other' end as second_tag,
|install_ts install_time,
|'$today' update_date
| from emr_doppler.event_$today_underline t1 left join (select a.game_id,a.store_id package_name,b.first_tag,b.second_tag from emr_doppler.player_new_store_game a join dwh.dim_package_tags_combine b on(a.store_id = b.package_name) group by a.game_id,a.store_id ,b.first_tag,b.second_tag ) t2
| from emr_doppler_v1.event_$today_underline t1 left join (select a.game_id,a.store_id package_name,b.first_tag,b.second_tag from emr_doppler_v1.player_new_store_game a join dwh.dim_package_tags_combine b on(a.store_id = b.package_name) group by a.game_id,a.store_id ,b.first_tag,b.second_tag ) t2
| on(t1.game_id = t2.game_id)
| where lower(t1.platform) in('android','ios') and event_id is not null and event_id != ''
|and ((ios_idfa rlike '$didPtn' and ios_idfa != '$allZero') or (google_aid rlike '$didPtn' and google_aid != '$allZero') or android_id rlike '$andriodIdPtn' )
|case when t2.package_name is not null then t2.second_tag else 'other' end as second_tag,
|'$today' update_date
| from emr_doppler.event_$today_underline t1 left join (select a.game_id,a.store_id package_name,b.first_tag,b.second_tag from emr_doppler.player_store_game a join dwh.dim_package_tags_combine b on(a.store_id = b.package_name) group by a.game_id,a.store_id ,b.first_tag,b.second_tag ) t2
| from emr_doppler_v1.event_$today_underline t1 left join (select a.game_id,a.store_id package_name,b.first_tag,b.second_tag from emr_doppler.player_store_game a join dwh.dim_package_tags_combine b on(a.store_id = b.package_name) group by a.game_id,a.store_id ,b.first_tag,b.second_tag ) t2
| on(t1.game_id = t2.game_id)
| where lower(t1.platform) in('android','ios')
|and ((ios_idfa rlike '$didPtn' and ios_idfa != '$allZero') or (google_aid rlike '$didPtn' and google_aid != '$allZero') or android_id rlike '$andriodIdPtn' )