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
e883f3f7
Commit
e883f3f7
authored
Nov 15, 2018
by
wangjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change all
parent
1298bb46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
azkaban.zip
azkaban.zip
+0
-0
app_start.sql
azkaban/app_start.sql
+2
-2
No files found.
azkaban.zip
View file @
e883f3f7
No preview for this file type
azkaban/app_start.sql
View file @
e883f3f7
...
...
@@ -9,9 +9,9 @@ SET mapreduce.reduce.java.opts=-Xmx8192m;
DROP
TABLE
IF
EXISTS
package_num
;
CREATE
TABLE
package_num
AS
SELECT
tt
.
package_name
,
tt
.
install_nums
FROM
(
SELECT
t1
.
package_name
,(
t1
.
install_num
-
(
CASE
WHEN
t2
.
install_num
IS
NULL
THEN
0
ELSE
t2
.
install_num
END
))
AS
install_nums
FROM
(
SELECT
package_name
,
count
(
1
)
AS
install_num
FROM
dwh
.
dm_install_list_v2
WHERE
dt
=
'${dt}'
AND
business
=
'3s'
GROUP
BY
package_name
)
AS
t1
FROM
(
SELECT
package_name
,
count
(
1
)
AS
install_num
FROM
dwh
.
dm_install_list_v2
WHERE
dt
=
'${dt}'
GROUP
BY
package_name
)
AS
t1
LEFT
JOIN
(
SELECT
package_name
,
count
(
1
)
AS
install_num
FROM
dwh
.
dm_install_list_v2
WHERE
dt
=
'${last_dt}'
AND
business
=
'3s'
GROUP
BY
package_name
)
AS
t2
(
SELECT
package_name
,
count
(
1
)
AS
install_num
FROM
dwh
.
dm_install_list_v2
WHERE
dt
=
'${last_dt}'
GROUP
BY
package_name
)
AS
t2
ON
t1
.
package_name
=
t2
.
package_name
)
tt
WHERE
tt
.
install_nums
>
30000
;
...
...
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