Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
040c6ea7
Commit
040c6ea7
authored
Nov 09, 2018
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repair bug
parent
490d3172
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
Recommendation_strategy_all.scala
...src/main/scala/com/gmei/Recommendation_strategy_all.scala
+10
-13
testt.scala
eda/feededa/src/main/scala/com/gmei/testt.scala
+1
-1
No files found.
eda/feededa/src/main/scala/com/gmei/Recommendation_strategy_all.scala
View file @
040c6ea7
...
@@ -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
()
...
...
eda/feededa/src/main/scala/com/gmei/testt.scala
View file @
040c6ea7
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment