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
887a2bbe
Commit
887a2bbe
authored
Nov 20, 2018
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除机构和黑名单
parent
f618a1e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
25 deletions
+2
-25
app_list.scala
eda/feededa/src/main/scala/com/gmei/app_list.scala
+2
-25
No files found.
eda/feededa/src/main/scala/com/gmei/app_list.scala
View file @
887a2bbe
...
...
@@ -94,6 +94,8 @@ object app_list {
s
"""
|select *
|from device_id
|where device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
val
tempp
=
temp
.
withColumn
(
"stat_date"
,
addCol
(
temp
(
"device_id"
)))
...
...
@@ -202,8 +204,6 @@ object coincidence_xinyang {
|select '${data}' as stat_date,count(distinct(device_id)) as yesterday_coincidence_num
|from device_id_coincidence
|where stat_date = '${data}'
|and device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
//2.每日活跃总用户数(采用曝光计算)
...
...
@@ -213,8 +213,6 @@ object coincidence_xinyang {
|from data_feed_exposure
|where stat_date = '${yesterday}'
|and device_type !='App Store'
|and device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
...
...
@@ -226,8 +224,6 @@ object coincidence_xinyang {
|select '${data}' as stat_date,count(distinct(device_id)) as week_coincidence_num
|from device_id_coincidence
|where stat_date > '${week_day}'
|and device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
//2.每周活跃总用户(采用曝光计算)
...
...
@@ -237,8 +233,6 @@ object coincidence_xinyang {
|from data_feed_exposure
|where stat_date > '${pre_weekday}'
|and device_type !='App Store'
|and device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
...
...
@@ -250,8 +244,6 @@ object coincidence_xinyang {
|select '${data}' as stat_date,count(distinct(device_id)) as month_coincidence_num
|from device_id_coincidence
|where stat_date > '${month_day}'
|and device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
//2.0 每月活跃总用户(采用曝光计算)
...
...
@@ -260,9 +252,6 @@ object coincidence_xinyang {
|select '${data}' as stat_date,count(distinct(device_id)) as month_expoure_num
|from data_feed_exposure
|where stat_date > '${pre_monthday}'
|and device_type !='App Store'
|and device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
...
...
@@ -284,8 +273,6 @@ object coincidence_xinyang {
|and pay_time is not null
|and pay_time >= '2017-11-18'
|and device_id in (select distinct(device_id) from device_id_coincidence)
|and device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
meigou_coincidence_num
.
show
()
...
...
@@ -300,8 +287,6 @@ object coincidence_xinyang {
|and pay_time is not null
|and pay_time >= '2017-11-18'
|and device_id in (select distinct(device_id) from device_id_coincidence)
|and device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
meigou_pay_device
.
show
()
...
...
@@ -314,8 +299,6 @@ object coincidence_xinyang {
|and pay_time is not null
|and pay_time >= '2017-11-18'
|and device_id in (select distinct(device_id) from device_id_coincidence)
|and device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
meigou_pay_all
.
show
()
...
...
@@ -329,8 +312,6 @@ object coincidence_xinyang {
|and pay_time is not null
|and pay_time >= '2017-11-18'
|and device_id in (select distinct(device_id) from device_id_coincidence)
|and device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
"""
.
stripMargin
)
meigou_pay_device_all
.
show
()
...
...
@@ -367,8 +348,6 @@ object coincidence_xinyang {
|where partition_date > '20180101'
|and action = 'welfare_detail_click_message'
|and cl_id in (select distinct(device_id) from device_id_coincidence)
|and cl_id not in (select device_id from bl_device_list)
|and cl_id not in (select device_id from blacklist)
"""
.
stripMargin
)
zixun_num_co
.
show
()
...
...
@@ -380,8 +359,6 @@ object coincidence_xinyang {
|where partition_date > '20180101'
|and action = 'welfare_detail_click_message'
|and cl_id in (select distinct(device_id) from device_id_coincidence)
|and cl_id not in (select device_id from bl_device_list)
|and cl_id not in (select device_id from blacklist)
"""
.
stripMargin
)
zixun_num_co_dis
.
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