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
1b9fe047
Commit
1b9fe047
authored
Dec 10, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.wanmeizhensuo.com:ML/ffm-baseline
add print
parents
66784e77
0e597661
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
testt.scala
eda/feededa/src/main/scala/com/gmei/testt.scala
+6
-1
No files found.
eda/feededa/src/main/scala/com/gmei/testt.scala
View file @
1b9fe047
...
...
@@ -86,6 +86,7 @@ object testt {
|and ou.cl_id not in (select device_id from blacklist)
"""
.
stripMargin
)
diary_meigou_count
.
show
()
//2.日记本点击数
val
diary_clk
=
sc
.
sql
(
...
...
@@ -100,6 +101,7 @@ object testt {
|and ov.cl_id not in (select device_id from blacklist)
"""
.
stripMargin
)
diary_clk
.
show
()
//3.日记本曝光数
val
diary_expoure
=
sc
.
sql
(
...
...
@@ -114,6 +116,7 @@ object testt {
|and od.cl_id not in (select device_id from blacklist)
"""
.
stripMargin
)
diary_expoure
.
show
()
//4.搜索次数统计
val
search_count
=
sc
.
sql
(
...
...
@@ -127,6 +130,7 @@ object testt {
|and ov.cl_id not in (select device_id from blacklist)
"""
.
stripMargin
)
search_count
.
show
()
//5.登录人数
...
...
@@ -140,13 +144,14 @@ object testt {
|and oe.device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
log_num
.
show
()
val
result
=
diary_meigou_count
.
join
(
diary_clk
,
"stat_date"
)
.
join
(
diary_expoure
,
"stat_date"
)
.
join
(
search_count
,
"stat_date"
)
.
join
(
log_num
,
"stat_date"
)
GmeiConfig
.
writeToJDBCTable
(
result
,
"diary_meigou_crv"
,
SaveMode
.
Overwrite
)
GmeiConfig
.
writeToJDBCTable
(
result
,
"diary_meigou_crv"
,
SaveMode
.
Append
)
}
...
...
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