Commit 52155ccd by WangJinfeng

fix m all devid

parent 579a1180
......@@ -37,7 +37,7 @@ class InstallListLogic extends CommonInstallListOrc {
spark.udf.register("toJsonBySplit", MobvistaConstant.toJsonBySplit _)
spark.udf.register("parseMExtData", MobvistaConstant.parseMExtData _)
sql = MobvistaConstant.adn_reuqest_sdk_sql.replace("@dt", date)
.replace("@update_date", expireDateTime)
.replace("@update_date", dateTime)
case "adn_request_unmatch" =>
spark.udf.register("toJsonBySplit", MobvistaConstant.toJsonBySplit _)
spark.udf.register("parseMExtData", MobvistaConstant.parseMExtData _)
......
......@@ -62,7 +62,7 @@ object MobvistaConstant {
val adn_reuqest_sdk_unmatch_sql: String =
"""
|SELECT device_id, device_type, platform, MAX(country) country, toJsonBySplit(CONCAT_WS(';',COLLECT_SET(package_name)), platform, '@update_date') install_list,
|SELECT device_id, device_type, platform, MAX(country) country, toJsonBySplit(CONCAT_WS(';',COLLECT_SET(package_name)), platform, update_date) install_list,
| parseMExtData(CONCAT_WS(',',COLLECT_SET(strategy)), CONCAT_WS(',',COLLECT_SET(region)), MAX(dev_tag)) ext_data
| FROM dwh.etl_adn_request_sdk_unmatch WHERE `dt` = '@dt' AND update_date >= '@update_date' AND check_device(device_id)
| GROUP BY device_id, device_type, platform
......
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