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
c9f2648a
Commit
c9f2648a
authored
8 years ago
by
mengdongxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tkdm_output_user_cluster_top_day.sql
parent
29666c7f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tkdm_output_user_cluster_top_day.sql
tkdm_output_user_cluster_top_day.sql
+4
-3
No files found.
tkdm_output_user_cluster_top_day.sql
View file @
c9f2648a
...
...
@@ -4,7 +4,7 @@ set Mapred.min.split.size.per.rack=256000000
set
hive
.
input
.
format
=
org
.
apache
.
hadoop
.
hive
.
ql
.
io
.
CombineHiveInputFormat
set
hive
.
groupby
.
skewindata
=
true
;
insert
overwrite
table
tkdm
.
tkdm_output_user_cluster_top_
day
partition
(
ds
=
'2017-02-25'
)
insert
overwrite
table
tkdm
.
tkdm_output_user_cluster_top_
all
partition
(
ds
=
'2017-02-25'
)
select
'2017-02-25'
as
dt
,
cid
,
...
...
@@ -33,7 +33,7 @@ from (
)
y
where
top_rank
<=
100
create
EXTERNAL
table
tkdm_output_user_cluster_top_
day
(
create
EXTERNAL
table
tkdm_output_user_cluster_top_
all
(
dt
string
,
cid
int
,
category_id
int
,
...
...
@@ -45,5 +45,5 @@ PARTITIONED BY (ds string)
ROW
FORMAT
DELIMITED
FIELDS
TERMINATED
BY
'
\t
'
STORED
AS
ORC
location
's3://reyuntkio/warehouse/tkio/tkdm.db/tkdm_output_user_cluster_top_
day
'
location
's3://reyuntkio/warehouse/tkio/tkdm.db/tkdm_output_user_cluster_top_
all
'
;
\ 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