Commit 68f34457 authored by 王志伟's avatar 王志伟

new files

parent 0c62cccd
......@@ -53,13 +53,13 @@ object find_bug {
// val stat_date = GmeiConfig.getMinusNDate(1)
val stat_date = param.date
val stat_date = param.date
//println(param.date)
val partition_date = stat_date.replace("-","")
val clk_count_all = sc.sql(
s"""
|select stat_date,count(cid_id) as clk_count_all
|select '${stat_date}' as stat_date,count(cid_id) as clk_count_all
|from data_feed_click
|where (cid_type = 'diary' or cid_type = 'diary_video')
|and device_id not in (select device_id from blacklist)
......@@ -69,7 +69,7 @@ object find_bug {
val imp_count_all = sc.sql(
s"""
|select stat_date,count(cid_id) as imp_count_all
|select '${stat_date}' as stat_date,count(cid_id) as imp_count_all
|from data_feed_exposure
|where cid_type = 'diary'
|and device_id not in (select device_id from blacklist)
......
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