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
c928eb56
Commit
c928eb56
authored
7 years ago
by
mengdongxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tkdm_base_device_pay_info.sql
parent
e72576d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
tkdm_base_device_pay_info.sql
tkdm_base_device_pay_info.sql
+7
-3
No files found.
tkdm_base_device_pay_info.sql
View file @
c928eb56
set
hive
.
skewjoin
.
key
=
100000
;
set
hive
.
ignore
.
mapjoin
.
hint
=
flase
;
set
hive
.
skewjoin
.
key
=
10000
;
set
hive
.
optimize
.
skewjoin
=
true
;
set
hive
.
input
.
format
=
org
.
apache
.
hadoop
.
hive
.
ql
.
io
.
BucketizedHiveInputFormat
;
set
hive
.
optimize
.
bucketmapjoin
=
true
;
set
hive
.
optimize
.
bucketmapjoin
.
sortedmerge
=
true
;
set
hive
.
merge
.
mapredfiles
=
true
;
insert
overwrite
table
tkdm
.
tkdm_base_device_pay_info
partition
(
ds
=
'2017-02-23'
)
select
/*+mapjoin(a)*/
nvl
(
b
.
appid
,
a
.
appid
)
as
appid
,
nvl
(
b
.
deviceid
,
a
.
deviceid
)
as
deviceid
,
nvl
(
b
.
first_payment_ds
,
'2017-02-23'
)
as
first_payment_ds
,
...
...
@@ -27,7 +28,7 @@ from
group
by
appid
,
deviceid
distribute
by
appid
,
deviceid
)
a
full
join
join
(
select
appid
,
deviceid
,
...
...
@@ -42,6 +43,8 @@ full join
use
tkdm
;
...
...
@@ -61,3 +64,4 @@ FIELDS TERMINATED BY '\t'
STORED
AS
ORC
location
's3://reyuntkio/warehouse/tkio/tkdm.db/tkdm_base_device_pay_info'
;
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