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
d77a1a76
Commit
d77a1a76
authored
Aug 15, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
union all replace union
parent
dbcbc226
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
getClickZeroUidRateDetail.py
eda/recommended_indexs/getClickZeroUidRateDetail.py
+5
-5
No files found.
eda/recommended_indexs/getClickZeroUidRateDetail.py
View file @
d77a1a76
...
@@ -41,7 +41,7 @@ def get_rate_detail(platform):
...
@@ -41,7 +41,7 @@ def get_rate_detail(platform):
where device_id not in
\
where device_id not in
\
(select distinct(device_id) from data_feed_exposure
\
(select distinct(device_id) from data_feed_exposure
\
where time < {2}))
\
where time < {2}))
\
union
\
union
all
\
select count(distinct(device_id)) from data_feed_exposure
\
select count(distinct(device_id)) from data_feed_exposure
\
where device_type{0}
\
where device_type{0}
\
and from_unixtime(time,'
%
Y-
%
m-
%
d')=date_add(curdate(), interval -1 day)
\
and from_unixtime(time,'
%
Y-
%
m-
%
d')=date_add(curdate(), interval -1 day)
\
...
@@ -58,7 +58,7 @@ def get_rate_detail(platform):
...
@@ -58,7 +58,7 @@ def get_rate_detail(platform):
and device_id in
\
and device_id in
\
(select distinct(device_id) from data_feed_exposure
\
(select distinct(device_id) from data_feed_exposure
\
where time < {2}))
\
where time < {2}))
\
union
\
union
all
\
select count(distinct(device_id)) from data_feed_exposure
\
select count(distinct(device_id)) from data_feed_exposure
\
where device_type{0}
\
where device_type{0}
\
and from_unixtime(time,'
%
Y-
%
m-
%
d')=date_add(curdate(), interval -1 day)
\
and from_unixtime(time,'
%
Y-
%
m-
%
d')=date_add(curdate(), interval -1 day)
\
...
@@ -75,7 +75,7 @@ def get_rate_detail(platform):
...
@@ -75,7 +75,7 @@ def get_rate_detail(platform):
and device_id in
\
and device_id in
\
(select distinct(device_id) from data_feed_exposure
\
(select distinct(device_id) from data_feed_exposure
\
where time < {3}))
\
where time < {3}))
\
union
\
union
all
\
select count(distinct(device_id)) from data_feed_exposure
\
select count(distinct(device_id)) from data_feed_exposure
\
where device_type{0}
\
where device_type{0}
\
and from_unixtime(time,'
%
Y-
%
m-
%
d')=date_add(curdate(), interval -1 day)
\
and from_unixtime(time,'
%
Y-
%
m-
%
d')=date_add(curdate(), interval -1 day)
\
...
@@ -92,7 +92,7 @@ def get_rate_detail(platform):
...
@@ -92,7 +92,7 @@ def get_rate_detail(platform):
and device_id in
\
and device_id in
\
(select distinct(device_id) from data_feed_exposure
\
(select distinct(device_id) from data_feed_exposure
\
where time < {4}))
\
where time < {4}))
\
union
\
union
all
\
select count(distinct(device_id)) from data_feed_exposure
\
select count(distinct(device_id)) from data_feed_exposure
\
where device_type{0}
\
where device_type{0}
\
and from_unixtime(time,'
%
Y-
%
m-
%
d')=date_add(curdate(), interval -1 day)
\
and from_unixtime(time,'
%
Y-
%
m-
%
d')=date_add(curdate(), interval -1 day)
\
...
@@ -109,7 +109,7 @@ def get_rate_detail(platform):
...
@@ -109,7 +109,7 @@ def get_rate_detail(platform):
and device_id in
\
and device_id in
\
(select distinct(device_id) from data_feed_exposure
\
(select distinct(device_id) from data_feed_exposure
\
where time < {5}))
\
where time < {5}))
\
union
\
union
all
\
select count(distinct(device_id)) from data_feed_exposure
\
select count(distinct(device_id)) from data_feed_exposure
\
where device_type{0}
\
where device_type{0}
\
and from_unixtime(time,'
%
Y-
%
m-
%
d')=date_add(curdate(), interval -1 day)
\
and from_unixtime(time,'
%
Y-
%
m-
%
d')=date_add(curdate(), interval -1 day)
\
...
...
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