Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tkdm
Project
Overview
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
etl
tkdm
Commits
b95a22de
Commit
b95a22de
authored
Mar 10, 2017
by
mengdongxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete tkdm_data_active_summary_day.sql
parent
818d68e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
50 deletions
+0
-50
tkdm_data_active_summary_day.sql
tkdm_data_active_summary_day.sql
+0
-50
No files found.
tkdm_data_active_summary_day.sql
deleted
100644 → 0
View file @
818d68e1
insert
overwrite
table
tkdm
.
tkdm_data_active_summary_day
partition
(
ds
=
'2017-02-26'
)
select
/*+ mapjoin(b) */
a
.
appid
,
a
.
cid
,
a
.
dupnum_click_all
,
a
.
num_install
,
round
(
a
.
num_install
/
a
.
dupnum_click_all
,
4
)
as
ins_rate
,
b
.
category_id
,
b
.
category_name
,
b
.
isgame
from
(
select
appid
,
cid
,
sum
(
dupnum_click_all
)
as
dupnum_click_all
,
sum
(
num_install
)
as
num_install
from
tkio
.
tkio_rpt_channel_compare_day
where
ds
=
'2017-02-26'
and
dt
=
'2017-02-26'
and
campaignid
!=
'_default_'
and
cid
!=-
2
group
by
appid
,
cid
having
sum
(
dupnum_click_all
)
>
10
)
as
a
join
(
select
appid
,
category_id
,
category_name
,
isgame
from
tkio_v2
.
tkio_dp_app_info
where
ds
=
'2017-02-26'
)
as
b
on
a
.
appid
=
b
.
appid
create
EXTERNAL
table
tkdm_data_active_summary_day
(
appid
string
,
cid
int
,
dupnum_click_all
int
,
num_install
int
,
ins_rate
double
,
category_id
int
,
category_name
string
,
isgame
int
)
PARTITIONED
BY
(
ds
string
)
ROW
FORMAT
DELIMITED
FIELDS
TERMINATED
BY
'
\t
'
location
's3://reyuntkio/warehouse/tkio/tkdm.db/tkdm_data_active_summary_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