Commit f7b0a010 by WangJinfeng

fix export_reyun_daily

parent 71bbe67c
......@@ -9,7 +9,7 @@ source ../../dmp_env.sh
dt=$(date +"%Y%m%d" -d "-1 day $ScheduleTime")
date_path=$(date +"%Y/%m/%d" -d "-1 day $ScheduleTime")
check_await ${ODS_DMP_USER_INFO_ALL}_v2/${dt}/_SUCCESS
check_await ${ODS_DMP_USER_INFO_DAILY}/${dt}/_SUCCESS
OUTPUT_PATH="${OUTPUT_REYUN_USER_INFO_PATH}/${date_path}"
......
......@@ -14,7 +14,7 @@ object Constant {
| mac, dev_id, idfa, ext_packagename, ext_finalpackagename, ext_channel, ext_oaid, ext_advinstalltime, ext_eventtime,
| ext_campaignpackagename
| FROM dwh.ods_adn_trackingnew_impression
| WHERE CONCAT(yyyy,mm,dd) = '@date' AND re = 'beijing' AND UPPER(country_code) = 'CN'
| WHERE CONCAT(yyyy,mm,dd) = '@date' AND UPPER(country_code) = 'CN'
|""".stripMargin
val tracking_install =
......@@ -37,7 +37,7 @@ object Constant {
val user_info =
"""
|SELECT dev_id, dev_id_md5, LOWER(dev_type) dev_type, LOWER(platform) platform, UPPER(country) country, install, interest, update_date
| FROM dwh.ods_dmp_user_info_all_v2
| FROM dwh.ods_dmp_user_info_daily
| WHERE dt = '@date' AND UPPER(country) = 'CN'
|""".stripMargin
}
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