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
98e4a44f
Commit
98e4a44f
authored
Apr 12, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查找无点击老用户
parent
0671e724
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
temp_count.scala
eda/feededa/src/main/scala/com/gmei/temp_count.scala
+5
-5
No files found.
eda/feededa/src/main/scala/com/gmei/temp_count.scala
View file @
98e4a44f
...
...
@@ -819,7 +819,7 @@ object find_reason {
|AND pv_ratio >= 0.95
"""
.
stripMargin
)
agency_id
.
show
()
//
agency_id.show()
agency_id
.
createOrReplaceTempView
(
"agency_id"
)
//每日新用户
val
device_id_newUser
=
sc
.
sql
(
...
...
@@ -839,7 +839,7 @@ object find_reason {
|and blacklist.device_id is null
"""
.
stripMargin
)
device_id_newUser
.
show
()
//
device_id_newUser.show()
device_id_newUser
.
createOrReplaceTempView
(
"device_id_new"
)
//每日老用户
...
...
@@ -860,7 +860,7 @@ object find_reason {
|and blacklist.device_id is null
"""
.
stripMargin
)
device_id_oldUser
.
show
()
//
device_id_oldUser.show()
device_id_oldUser
.
createOrReplaceTempView
(
"device_id_old"
)
...
...
@@ -878,7 +878,7 @@ object find_reason {
|and agency_id.device_id is null
"""
.
stripMargin
)
all_clk
.
show
()
//
all_clk.show()
all_clk
.
createOrReplaceTempView
(
"all_clk_diary_card"
)
//1.当天老用户中的点击用户数
...
...
@@ -889,7 +889,7 @@ object find_reason {
|on oc.device_id = device_id_old.device_id
"""
.
stripMargin
)
old_clk_count
.
show
()
//
old_clk_count.show()
//1.1有点击的老用户
val
old_clk_device
=
sc
.
sql
(
s
"""
...
...
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