Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
Project
Project
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
data
bi-report
Commits
08277965
Commit
08277965
authored
Jul 21, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'weiyimin' into 'master'
Weiyimin See merge request
!18
parents
9a319b9b
204fd407
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
43 additions
and
22 deletions
+43
-22
create_push.sql
pm/daily_push/etl/create_push.sql
+28
-8
daily_push.sql
pm/daily_push/etl/daily_push.sql
+0
-0
daily_push.zip
pm/daily_push/job/daily_push.zip
+0
-0
step1_8.job
pm/daily_push/job/step1_8.job
+4
-0
step1_9.job
pm/daily_push/job/step1_9.job
+4
-0
step2.job
pm/daily_push/job/step2.job
+2
-1
step3.job
pm/daily_push/job/step3.job
+3
-2
step3_1.job
pm/daily_push/job/step3_1.job
+0
-5
step3_2.job
pm/daily_push/job/step3_2.job
+0
-5
daily_push_click.sql
pm/daily_push/report/daily_push_click.sql
+2
-1
No files found.
pm/daily_push/etl/create_push
_click
.sql
→
pm/daily_push/etl/create_push.sql
View file @
08277965
...
...
@@ -21,46 +21,66 @@ CREATE TABLE IF NOT EXISTS pm.tl_pm_push_d
active_type
string
comment
'{"chs_name":"活跃类型","description":"","etl":"","value":"","remark":""}'
,
dau
BIGINT
comment
'{"chs_name":"DAU","description":"","etl":"","value":"","remark":""}'
,
is_open_uv
BIGINT
comment
'{"chs_name":"push开启设备数","description":"","etl":"","value":"","remark":""}'
,
push_receive_uv
BIGINT
comment
'{"chs_name":"push接收设备数","description":"","etl":"","value":"","remark":""}'
,
push_receive_pv
BIGINT
comment
'{"chs_name":"push接收人次","description":"","etl":"","value":"","remark":""}'
,
push_open_uv
BIGINT
comment
'{"chs_name":"push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
push_open_pv
BIGINT
comment
'{"chs_name":"push拉起人次","description":"","etl":"","value":"","remark":""}'
,
push_open_2_uv
BIGINT
comment
'{"chs_name":"push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
push_open_2_pv
BIGINT
comment
'{"chs_name":"push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
,
op_receive_uv
BIGINT
comment
'{"chs_name":"运营push接收设备数","description":"","etl":"","value":"","remark":""}'
,
op_receive_pv
BIGINT
comment
'{"chs_name":"运营push接收人次","description":"","etl":"","value":"","remark":""}'
,
op_push_open_uv
BIGINT
comment
'{"chs_name":"运营push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
op_push_open_pv
BIGINT
comment
'{"chs_name":"运营push拉起人次","description":"","etl":"","value":"","remark":""}'
,
op_push_open_2_uv
BIGINT
comment
'{"chs_name":"运营push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
op_push_open_2_pv
BIGINT
comment
'{"chs_name":"运营push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
,
auto_push_open_uv
BIGINT
comment
'{"chs_name":"除运营、个性化、签到、意愿外push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
auto_push_open_pv
BIGINT
comment
'{"chs_name":"除运营、个性化、签到、意愿外push拉起人次","description":"","etl":"","value":"","remark":""}'
,
auto_push_open_2_uv
BIGINT
comment
'{"chs_name":"除运营、个性化、签到、意愿外push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
auto_push_open_2_pv
BIGINT
comment
'{"chs_name":"除运营、个性化、签到、意愿外push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
,
xitong_receive_uv
BIGINT
comment
'{"chs_name":"除运营、个性化、签到、意愿外push接收设备数","description":"","etl":"","value":"","remark":""}'
,
xitong_receive_pv
BIGINT
comment
'{"chs_name":"除运营、个性化、签到、意愿外push接收人次","description":"","etl":"","value":"","remark":""}'
,
xitong_push_open_uv
BIGINT
comment
'{"chs_name":"除运营、个性化、签到、意愿外push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
xitong_push_open_pv
BIGINT
comment
'{"chs_name":"除运营、个性化、签到、意愿外push拉起人次","description":"","etl":"","value":"","remark":""}'
,
xitong_push_open_2_uv
BIGINT
comment
'{"chs_name":"除运营、个性化、签到、意愿外push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
xitong_push_open_2_pv
BIGINT
comment
'{"chs_name":"除运营、个性化、签到、意愿外push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
,
will_receive_uv
BIGINT
comment
'{"chs_name":"意愿探索push接收设备数","description":"","etl":"","value":"","remark":""}'
,
will_receive_pv
BIGINT
comment
'{"chs_name":"意愿探索push接收人次","description":"","etl":"","value":"","remark":""}'
,
will_push_open_uv
BIGINT
comment
'{"chs_name":"意愿探索push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
will_push_open_pv
BIGINT
comment
'{"chs_name":"意愿探索push拉起人次","description":"","etl":"","value":"","remark":""}'
,
will_push_open_2_uv
BIGINT
comment
'{"chs_name":"意愿探索push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
will_push_open_2_pv
BIGINT
comment
'{"chs_name":"意愿探索push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
,
sign_receive_uv
BIGINT
comment
'{"chs_name":"签到push接收设备数","description":"","etl":"","value":"","remark":""}'
,
sign_receive_pv
BIGINT
comment
'{"chs_name":"签到push接收人次","description":"","etl":"","value":"","remark":""}'
,
sign_push_open_uv
BIGINT
comment
'{"chs_name":"签到push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
sign_push_open_pv
BIGINT
comment
'{"chs_name":"签到push拉起人次","description":"","etl":"","value":"","remark":""}'
,
sign_push_open_2_uv
BIGINT
comment
'{"chs_name":"签到push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
sign_push_open_2_pv
BIGINT
comment
'{"chs_name":"签到push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
,
personal_receive_uv
BIGINT
comment
'{"chs_name":"个性化push接收设备数","description":"","etl":"","value":"","remark":""}'
,
personal_receive_pv
BIGINT
comment
'{"chs_name":"个性化push接收人次","description":"","etl":"","value":"","remark":""}'
,
personal_push_open_uv
BIGINT
comment
'{"chs_name":"个性化push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
personal_push_open_pv
BIGINT
comment
'{"chs_name":"个性化push拉起人次","description":"","etl":"","value":"","remark":""}'
,
personal_push_open_2_uv
BIGINT
comment
'{"chs_name":"个性化push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
personal_push_open_2_pv
BIGINT
comment
'{"chs_name":"个性化push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
,
ctr_receive_uv
BIGINT
comment
'{"chs_name":"ctr_push接收设备数","description":"","etl":"","value":"","remark":""}'
,
ctr_receive_pv
BIGINT
comment
'{"chs_name":"ctr_push接收人次","description":"","etl":"","value":"","remark":""}'
,
ctr_push_open_uv
BIGINT
comment
'{"chs_name":"ctr_push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
ctr_push_open_pv
BIGINT
comment
'{"chs_name":"ctr_push拉起人次","description":"","etl":"","value":"","remark":""}'
,
ctr_push_open_2_uv
BIGINT
comment
'{"chs_name":"ctr_push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
ctr_push_open_2_pv
BIGINT
comment
'{"chs_name":"ctr_push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
,
non_ctr_receive_uv
BIGINT
comment
'{"chs_name":"非ctr_push接收设备数","description":"","etl":"","value":"","remark":""}'
,
non_ctr_receive_pv
BIGINT
comment
'{"chs_name":"非ctr_push接收人次","description":"","etl":"","value":"","remark":""}'
,
non_ctr_push_open_uv
BIGINT
comment
'{"chs_name":"非ctr_push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
non_ctr_push_open_pv
BIGINT
comment
'{"chs_name":"非ctr_push拉起人次","description":"","etl":"","value":"","remark":""}'
,
non_ctr_push_open_2_uv
BIGINT
comment
'{"chs_name":"非ctr_push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
non_ctr_push_open_2_pv
BIGINT
comment
'{"chs_name":"非ctr_push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
,
AI_receive_uv
BIGINT
comment
'{"chs_name":"AI_push接收设备数","description":"","etl":"","value":"","remark":""}'
,
AI_receive_pv
BIGINT
comment
'{"chs_name":"AI_push接收人次","description":"","etl":"","value":"","remark":""}'
,
AI_push_open_uv
BIGINT
comment
'{"chs_name":"AI_push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
AI_push_open_pv
BIGINT
comment
'{"chs_name":"AI_push拉起人次","description":"","etl":"","value":"","remark":""}'
,
AI_push_open_2_uv
BIGINT
comment
'{"chs_name":"AI_push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
AI_push_open_2_pv
BIGINT
comment
'{"chs_name":"AI_push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
,
orignal_auto_push_open_uv
BIGINT
comment
'{"chs_name":"除运营外push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
orignal_auto_push_open_pv
BIGINT
comment
'{"chs_name":"除运营外push拉起人次","description":"","etl":"","value":"","remark":""}'
,
orginal_auto_push_open_2_uv
BIGINT
comment
'{"chs_name":"除运营外push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
orginal_auto_push_open_2_pv
BIGINT
comment
'{"chs_name":"除运营外push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
auto_receive_uv
BIGINT
comment
'{"chs_name":"除运营外push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
auto_receive_pv
BIGINT
comment
'{"chs_name":"除运营外push拉起人次","description":"","etl":"","value":"","remark":""}'
,
auto_push_open_uv
BIGINT
comment
'{"chs_name":"除运营外push拉起设备数","description":"","etl":"","value":"","remark":""}'
,
auto_push_open_pv
BIGINT
comment
'{"chs_name":"除运营外push拉起人次","description":"","etl":"","value":"","remark":""}'
,
auto_push_open_2_uv
BIGINT
comment
'{"chs_name":"除运营外push拉起有2跳设备数","description":"","etl":"","value":"","remark":""}'
,
auto_push_open_2_pv
BIGINT
comment
'{"chs_name":"除运营外push拉起有2跳人次","description":"","etl":"","value":"","remark":""}'
)
comment
'push日报'
PARTITIONED
BY
(
PARTITION_DAY
STRING
comment
'分区日期'
)
ROW
FORMAT
DELIMITED
...
...
pm/daily_push/etl/daily_push.sql
View file @
08277965
This diff is collapsed.
Click to expand it.
pm/daily_push/job/daily_push.zip
View file @
08277965
No preview for this file type
pm/daily_push/job/step1_8.job
0 → 100644
View file @
08277965
#step1_8.job
type=command
command=sh /home/bi/bi-report/lib/shell/waitsuccess.sh hive online tl_hdfs_auroracallback_view
\ No newline at end of file
pm/daily_push/job/step1_9.job
0 → 100644
View file @
08277965
#step1_9.job
type=command
command=sh /home/bi/bi-report/lib/shell/waitsuccess.sh hive online tl_hdfs_api_jpushuserdevicebinding_view
\ No newline at end of file
pm/daily_push/job/step2.job
View file @
08277965
#step2.job
type=command
dependencies=step1_1,step1_2,step1_3,step1_4,step1_5,step1_6,step1_7
dependencies=step1_1,step1_2,step1_3,step1_4,step1_5,step1_6,step1_7
,step1_8,step1_9
command=/home/bi/bi-report/lib/shell/hive daily_push
\ No newline at end of file
pm/daily_push/job/step
4
.job
→
pm/daily_push/job/step
3
.job
View file @
08277965
#step
4
.job
#step
3
.job
type=command
dependencies=step
3_1,step3_
2
dependencies=step2
command=curl -X GET http://localhost:8553/api/report/email/daily_push/liweirui@igengmei.com,duanyingrong@igengmei.com,zhaowei@igengmei.com,songke@igengmei.com/zhaofei@igengmei.com,weiyimin@igengmei.com
\ No newline at end of file
pm/daily_push/job/step3_1.job
deleted
100644 → 0
View file @
9a319b9b
#step3_1.job
type=command
dependencies=step2
command=sh /home/bi/bi-report/lib/shell/waitsuccess.sh hive pm tl_pm_push_click_d
\ No newline at end of file
pm/daily_push/job/step3_2.job
deleted
100644 → 0
View file @
9a319b9b
#step3_2.job
type=command
dependencies=step2
command=sh /home/bi/bi-report/lib/shell/waitsuccess.sh hive pm tl_pm_push_receive_d
\ No newline at end of file
pm/daily_push/report/daily_push_click.sql
View file @
08277965
...
...
@@ -25,7 +25,8 @@ select day_id as `日期`
,
NVL
(
CONCAT
(
ROUND
(
non_ctr_push_open_2_uv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`非ctr push拉起有2跳设备/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
non_ctr_push_open_2_pv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`非ctr push拉起有2跳人次/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
non_ctr_push_open_2_pv
/
non_ctr_push_open_pv
*
100
,
2
),
'%'
),
0
)
as
`非ctr push二跳率=2跳人次/拉起人次`
from
pm
.
tl_pm_push_
click_
d
from
pm
.
tl_pm_push_d
where
partition_day
>=
'20200708'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
and
day_id
>=
'20200626'
and
active_type
=
'老活'
order
by
`日期`
,
`设备类型`
,
`活跃类型`
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