Commit 040c6ea7 authored by 王志伟's avatar 王志伟

repair bug

parent 490d3172
...@@ -137,24 +137,21 @@ object Recommendation_strategy_all { ...@@ -137,24 +137,21 @@ object Recommendation_strategy_all {
} }
val current_all = sc.sql(
s"""
|select a.stat_date,a.clk_count_oldUser_experiment,a.imp_count_oldUser_experiment,b.clk_count_oldUser_all,b.imp_count_oldUser_all
|from temp1 a join temp2 b
|on a.stat_date = b.stat_date
""".stripMargin
)
val result = current_all
result.show()
}
val current_all = sc.sql(
s"""
|select a.stat_date,a.clk_count_oldUser_experiment,a.imp_count_oldUser_experiment,b.clk_count_oldUser_all,b.imp_count_oldUser_all
|from temp1 a join temp2 b
|on a.stat_date = b.stat_date
""".stripMargin
)
} val result = current_all
result.show()
......
...@@ -66,7 +66,7 @@ object testt { ...@@ -66,7 +66,7 @@ object testt {
s""" s"""
|select diary_id,dur_time,num_clk,(dur_time/num_clk) as avg |select diary_id,dur_time,num_clk,(dur_time/num_clk) as avg
|from temp |from temp
|order by avg desc |order by num_clk desc
""".stripMargin """.stripMargin
) )
GmeiConfig.writeToJDBCTable(avg, "avg", SaveMode.Overwrite) GmeiConfig.writeToJDBCTable(avg, "avg", SaveMode.Overwrite)
......
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