Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppTag
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
AppTag
Commits
c141ffb5
Commit
c141ffb5
authored
Jan 16, 2019
by
wangjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e193136c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app_start.sql
azkaban/app_start.sql
+4
-3
No files found.
azkaban/app_start.sql
View file @
c141ffb5
...
...
@@ -8,9 +8,10 @@ SET mapreduce.reduce.java.opts=-Xmx8192m;
SET
hive
.
mapred
.
mode
=
nonstrict
;
DROP
TABLE
IF
EXISTS
package_num
;
CREATE
TABLE
package_num
AS
SELECT
d
.
package_name
,
count
(
1
)
install_num
FROM
dwh
.
dm_install_list_v2
d
,
dwh
.
dim_package_tags
t
WHERE
d
.
dt
=
'${dt}'
AND
d
.
update_date
BETWEEN
'${LAST_DT}'
AND
'${dt}'
AND
d
.
package_name
<>
t
.
package_name
GROUP
BY
d
.
package_name
HAVING
count
(
1
)
>
30000
CREATE
TABLE
package_num
AS
SELECT
package_name
,
count
(
1
)
install_num
FROM
dwh
.
dm_install_list_v2
WHERE
dt
=
'${dt}'
AND
update_date
BETWEEN
'${LAST_DT}'
AND
'${dt}'
AND
package_name
NOT
IN
(
SELECT
distinct
package_name
FROM
dwh
.
dim_package_tags
)
GROUP
BY
package_name
HAVING
count
(
1
)
>
30000
ORDER
BY
install_num
DESC
LIMIT
5000
;
DROP
TABLE
IF
EXISTS
package_info
;
...
...
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