Commit a79c6296 authored by 张彦钊's avatar 张彦钊

change

parent 4895ca0b
...@@ -56,7 +56,7 @@ def all_click(x): ...@@ -56,7 +56,7 @@ def all_click(x):
.format(date)).rdd.map(lambda x: x[0]).collect()[0] .format(date)).rdd.map(lambda x: x[0]).collect()[0]
meigou_homepage_sum = meigou_homepage_sum + tmp meigou_homepage_sum = meigou_homepage_sum + tmp
println("美购首页icon美购点击") print("美购首页icon美购点击")
tmp = spark.sql("select count(*) from online.bl_hdfs_maidian_updates where partition_date='{}' " tmp = spark.sql("select count(*) from online.bl_hdfs_maidian_updates where partition_date='{}' "
"and action = 'goto_welfare_detail' and app['version'] in ('7.15.0','7.14.0') " "and action = 'goto_welfare_detail' and app['version'] in ('7.15.0','7.14.0') "
"and params['from'] = 'welfare_list' and params['cpc_referer'] = '18'" "and params['from'] = 'welfare_list' and params['cpc_referer'] = '18'"
...@@ -123,7 +123,7 @@ def cpc_click(x): ...@@ -123,7 +123,7 @@ def cpc_click(x):
.format(date)).rdd.map(lambda x: x[0]).collect()[0] .format(date)).rdd.map(lambda x: x[0]).collect()[0]
meigou_home_sum = meigou_home_sum + tmp meigou_home_sum = meigou_home_sum + tmp
println("美购首页icon美购点击") print("美购首页icon美购点击")
tmp = spark.sql("select count(*) from online.bl_hdfs_maidian_updates where partition_date='{}' " tmp = spark.sql("select count(*) from online.bl_hdfs_maidian_updates where partition_date='{}' "
"and action = 'goto_welfare_detail' and app['version'] in ('7.15.0','7.14.0') " "and action = 'goto_welfare_detail' and app['version'] in ('7.15.0','7.14.0') "
"and params['from'] = 'welfare_list' and params['cpc_referer'] = '18' " "and params['from'] = 'welfare_list' and params['cpc_referer'] = '18' "
......
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