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
144cb1ae
Commit
144cb1ae
authored
Dec 13, 2018
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计日记本点击的各个来源数量
parent
eaa746fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
temp_analysis.scala
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
+1
-5
No files found.
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
View file @
144cb1ae
...
...
@@ -73,7 +73,6 @@ object temp_analysis {
|AND pv_ratio >= 0.95
"""
.
stripMargin
)
agency_id
.
show
()
agency_id
.
createOrReplaceTempView
(
"agency_id"
)
...
...
@@ -93,7 +92,6 @@ object temp_analysis {
|and partition_date ='${partition_date}'
"""
.
stripMargin
)
device_id_newUser
.
show
()
device_id_newUser
.
createOrReplaceTempView
(
"device_id_new"
)
val
blacklist_id
=
sc
.
sql
(
...
...
@@ -102,7 +100,6 @@ object temp_analysis {
|from blacklist
"""
.
stripMargin
)
blacklist_id
.
show
()
blacklist_id
.
createOrReplaceTempView
(
"blacklist_id"
)
val
final_id
=
sc
.
sql
(
...
...
@@ -117,7 +114,6 @@ object temp_analysis {
|from blacklist_id
"""
.
stripMargin
)
final_id
.
show
()
final_id
.
createOrReplaceTempView
(
"final_id"
)
//日记本点击
...
...
@@ -127,7 +123,7 @@ object temp_analysis {
for
(
a
<-
referrer
){
val
diary_clk_temp
=
sc
.
sql
(
s
"""
|select ov.partition_date,count(ov.cl_id) as clk_num
|select ov.partition_date,count(ov.cl_id) as clk_num
,count(distinct(ov.cl_id))
|from online.tl_hdfs_maidian_view ov left join final_id
|on ov.cl_id = final_id.device_id
|where ov.action = "page_view"
...
...
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