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
a97ffa47
Commit
a97ffa47
authored
7 years ago
by
mengdongxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tkdm_data_app_summary_day.sql
parent
6313768a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
tkdm_data_app_summary_day.sql
tkdm_data_app_summary_day.sql
+7
-2
No files found.
tkdm_data_app_summary_day.sql
View file @
a97ffa47
...
...
@@ -9,6 +9,8 @@ insert overwrite table tkdm.tkdm_data_app_summary_day partition(ds='$ds')
select
/*+ mapjoin(b) */
a
.
appid
,
a
.
cid
,
a
.
num_click
,
a
.
dupnum_click_day
,
a
.
dupnum_click_all
,
a
.
num_install
,
round
(
a
.
num_install
/
a
.
dupnum_click_all
,
4
)
as
ins_rate
,
...
...
@@ -24,6 +26,8 @@ select /*+ mapjoin(b) */ a.appid,
from
(
select
appid
,
cid
,
sum
(
num_click
)
as
num_click
,
sum
(
dupnum_click_day
)
as
dupnum_click_day
,
sum
(
dupnum_click_all
)
as
dupnum_click_all
,
sum
(
num_install
)
as
num_install
,
sum
(
dupnum_reged_day
)
as
dupnum_reged_day
,
...
...
@@ -56,6 +60,8 @@ join
create
EXTERNAL
table
tkdm_data_app_summary_day
(
appid
string
,
cid
int
,
num_click
int
,
dupnum_click_day
int
,
dupnum_click_all
int
,
num_install
int
,
ins_rate
double
,
...
...
@@ -73,4 +79,4 @@ PARTITIONED BY (ds string)
ROW
FORMAT
DELIMITED
FIELDS
TERMINATED
BY
'
\t
'
location
's3://reyuntkio/warehouse/tkio/tkdm.db/tkdm_data_app_summary_day'
;
\ No newline at end of file
;
This diff is collapsed.
Click to expand it.
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