Commit 2ea13b3a authored by 王志伟's avatar 王志伟

add

parent b4dacf8f
...@@ -85,6 +85,7 @@ object Recommendation_strategy_all { ...@@ -85,6 +85,7 @@ object Recommendation_strategy_all {
|and jd.stat_date ='${param.date}' |and jd.stat_date ='${param.date}'
""".stripMargin """.stripMargin
) )
clk_count_oldUser_Contrast.show()
val imp_count_oldUser_Contrast = sc.sql( val imp_count_oldUser_Contrast = sc.sql(
s""" s"""
...@@ -98,6 +99,7 @@ object Recommendation_strategy_all { ...@@ -98,6 +99,7 @@ object Recommendation_strategy_all {
|and je.stat_date ='${param.date}' |and je.stat_date ='${param.date}'
""".stripMargin """.stripMargin
) )
imp_count_oldUser_Contrast.show()
val clk_count_oldUser_all = sc.sql( val clk_count_oldUser_all = sc.sql(
s""" s"""
...@@ -110,6 +112,7 @@ object Recommendation_strategy_all { ...@@ -110,6 +112,7 @@ object Recommendation_strategy_all {
|and jd.stat_date ='${param.date}' |and jd.stat_date ='${param.date}'
""".stripMargin """.stripMargin
) )
clk_count_oldUser_all.show()
val imp_count_oldUser_all = sc.sql( val imp_count_oldUser_all = sc.sql(
s""" s"""
...@@ -122,6 +125,7 @@ object Recommendation_strategy_all { ...@@ -122,6 +125,7 @@ object Recommendation_strategy_all {
|and je.stat_date ='${param.date}' |and je.stat_date ='${param.date}'
""".stripMargin """.stripMargin
) )
imp_count_oldUser_all.show()
val result = clk_count_oldUser_Contrast.join(imp_count_oldUser_Contrast,"stat_date") val result = clk_count_oldUser_Contrast.join(imp_count_oldUser_Contrast,"stat_date")
.join(clk_count_oldUser_all,"stat_date") .join(clk_count_oldUser_all,"stat_date")
......
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