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
9286ae96
Commit
9286ae96
authored
Oct 26, 2018
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chang
parent
e29620a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
strategy_clk_imp_oldUser.scala
...da/src/main/scala/com/gmei/strategy_clk_imp_oldUser.scala
+2
-6
No files found.
eda/feededa/src/main/scala/com/gmei/strategy_clk_imp_oldUser.scala
View file @
9286ae96
...
@@ -70,8 +70,8 @@ object strategy_clk_imp_oldUser {
...
@@ -70,8 +70,8 @@ object strategy_clk_imp_oldUser {
|and partition_date ='${partition_date}'
|and partition_date ='${partition_date}'
"""
.
stripMargin
"""
.
stripMargin
)
)
decive_id_
old
User
.
show
()
decive_id_
new
User
.
show
()
decive_id_
old
User
.
createOrReplaceTempView
(
"device_id_newUser"
)
decive_id_
new
User
.
createOrReplaceTempView
(
"device_id_newUser"
)
val
strategies
=
Seq
(
"[1|2]$"
,
"[3|4]$"
,
"[5|6]$"
,
"[7|8]$"
)
val
strategies
=
Seq
(
"[1|2]$"
,
"[3|4]$"
,
"[5|6]$"
,
"[7|8]$"
)
for
(
strategy
<-
strategies
){
for
(
strategy
<-
strategies
){
...
@@ -85,7 +85,6 @@ object strategy_clk_imp_oldUser {
...
@@ -85,7 +85,6 @@ object strategy_clk_imp_oldUser {
|and jd.device_id not in (select device_id from bl_device_list)
|and jd.device_id not in (select device_id from bl_device_list)
|and jd.device_id not in (select device_id from blacklist)
|and jd.device_id not in (select device_id from blacklist)
|and jd.stat_date ='${stat_date}'
|and jd.stat_date ='${stat_date}'
|and device_id_old.decive_id is null
"""
.
stripMargin
"""
.
stripMargin
)
)
clk_count_oldUser
.
show
()
clk_count_oldUser
.
show
()
...
@@ -100,7 +99,6 @@ object strategy_clk_imp_oldUser {
...
@@ -100,7 +99,6 @@ object strategy_clk_imp_oldUser {
|and je.device_id not in (select device_id from bl_device_list)
|and je.device_id not in (select device_id from bl_device_list)
|and je.device_id not in (select device_id from blacklist)
|and je.device_id not in (select device_id from blacklist)
|and je.stat_date ='${stat_date}'
|and je.stat_date ='${stat_date}'
|and device_id_old.decive_id is null
"""
.
stripMargin
"""
.
stripMargin
)
)
imp_count_oldUser
.
show
()
imp_count_oldUser
.
show
()
...
@@ -116,7 +114,6 @@ object strategy_clk_imp_oldUser {
...
@@ -116,7 +114,6 @@ object strategy_clk_imp_oldUser {
|and jd.device_id not in (select device_id from bl_device_list)
|and jd.device_id not in (select device_id from bl_device_list)
|and jd.device_id not in (select device_id from blacklist)
|and jd.device_id not in (select device_id from blacklist)
|and jd.stat_date ='${stat_date}'
|and jd.stat_date ='${stat_date}'
|and device_id_newUser.decive_id is null
"""
.
stripMargin
"""
.
stripMargin
)
)
clk_count_newUser
.
show
()
clk_count_newUser
.
show
()
...
@@ -131,7 +128,6 @@ object strategy_clk_imp_oldUser {
...
@@ -131,7 +128,6 @@ object strategy_clk_imp_oldUser {
|and je.device_id not in (select device_id from bl_device_list)
|and je.device_id not in (select device_id from bl_device_list)
|and je.device_id not in (select device_id from blacklist)
|and je.device_id not in (select device_id from blacklist)
|and je.stat_date ='${stat_date}'
|and je.stat_date ='${stat_date}'
|and device_id_newUser.decive_id is null
"""
.
stripMargin
"""
.
stripMargin
)
)
imp_count_newUser
.
show
()
imp_count_newUser
.
show
()
...
...
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