Commit e31ce3a8 by fan.jiang

lazada提取30天的数据

parent 0982ab1d
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
source ../dmp_env.sh source ../dmp_env.sh
dt_today=$(date -d "$ScheduleTime 2 days ago" +"%Y%m%d") dt_today=$(date -d "$ScheduleTime 2 days ago" +"%Y%m%d")
last_req_day=$(date -d "$ScheduleTime 16 days ago" +"%Y-%m-%d") last_req_day=$(date -d "$ScheduleTime 31 days ago" +"%Y-%m-%d")
dt_six_days_ago=$(date -d "$ScheduleTime 8 days ago" +"%Y%m%d") dt_six_days_ago=$(date -d "$ScheduleTime 8 days ago" +"%Y%m%d")
dt_30days_ago=$(date -d "$ScheduleTime 31 days ago" +"%Y%m%d") dt_30days_ago=$(date -d "$ScheduleTime 31 days ago" +"%Y%m%d")
......
...@@ -108,7 +108,7 @@ class EtlLazadaActivitionDaily extends CommonSparkJob { ...@@ -108,7 +108,7 @@ class EtlLazadaActivitionDaily extends CommonSparkJob {
val sql2= val sql2=
s""" s"""
|select device_id,country |select device_id,country
|from dwh.ods_dmp_user_info where dt = '${today}' and last_req_day >= '${last_req_day}' |from dwh.ods_dmp_user_info where dt = '${today}' and last_req_day >= '${last_req_day}' and business not in ('other', 'ali_acquisition', 'ali_activation', 'adn_install')
| and device_type='gaid' | and device_type='gaid'
| and platform='android' | and platform='android'
| group by device_id,country | group by device_id,country
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment