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
6a7e6b94
Commit
6a7e6b94
authored
Aug 03, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
deb9c561
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
daily_recommend_strategy.sql
pm/daily_recommend_strategy/etl/daily_recommend_strategy.sql
+1
-1
content_ctr.sql
pm/daily_recommend_strategy/report/content_ctr.sql
+2
-2
home_recommend_strategy.sql
...ily_recommend_strategy/report/home_recommend_strategy.sql
+1
-1
No files found.
pm/daily_recommend_strategy/etl/daily_recommend_strategy.sql
View file @
6a7e6b94
...
@@ -432,7 +432,7 @@ order by day_id,device_os_type,active_type,card_content_type,recommend_type;
...
@@ -432,7 +432,7 @@ order by day_id,device_os_type,active_type,card_content_type,recommend_type;
INSERT
OVERWRITE
TABLE
pm
.
tl_pm_
recommend_strategy_d
PARTITION
(
PARTITION_DAY
=
${
partition_day
}
)
INSERT
OVERWRITE
TABLE
pm
.
tl_pm_
contentpage_ctr
PARTITION
(
PARTITION_DAY
=
${
partition_day
}
)
SELECT
mas
.
partition_date
day_id
SELECT
mas
.
partition_date
day_id
,
device_os_type
,
device_os_type
...
...
pm/daily_recommend_strategy/report/content_ctr.sql
View file @
6a7e6b94
...
@@ -16,4 +16,4 @@ SELECT
...
@@ -16,4 +16,4 @@ SELECT
self_wel_click_pv
as
`关联卡片点击pv`
self_wel_click_pv
as
`关联卡片点击pv`
FROM
pm
.
tl_pm_contentpage_ctr
FROM
pm
.
tl_pm_contentpage_ctr
WHERE
partition_day
>=
'20200730'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
WHERE
partition_day
>=
'20200730'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
order
by
1
desc
,
2
,
3
,
4
,
5
order
by
`日期`
desc
,
`设备类型`
,
`活跃类型`
,
`灰度`
,
`页面`
\ No newline at end of file
\ No newline at end of file
pm/daily_recommend_strategy/report/home_recommend_strategy.sql
View file @
6a7e6b94
...
@@ -16,7 +16,7 @@ SELECT
...
@@ -16,7 +16,7 @@ SELECT
self_welfare_card
as
`来自I的商品卡片点击PV`
,
self_welfare_card
as
`来自I的商品卡片点击PV`
,
recommend_welfare_card
as
`来自I的推荐商品+查看全部商品点击pv`
,
recommend_welfare_card
as
`来自I的推荐商品+查看全部商品点击pv`
,
recommend_content_card
as
`来自I的推荐内容点击pv`
,
recommend_content_card
as
`来自I的推荐内容点击pv`
,
'未配置'
as
`来自I的推荐专题点击pv`
,
--
'未配置' as `来自I的推荐专题点击pv`,
transfer_card
as
`来自I的转诊点击pv`
,
transfer_card
as
`来自I的转诊点击pv`
,
video_consultation
as
`来自I的视频面诊点击pv`
FROM
pm
.
tl_pm_recommend_strategy_d
video_consultation
as
`来自I的视频面诊点击pv`
FROM
pm
.
tl_pm_recommend_strategy_d
WHERE
partition_day
>=
'20200627'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
WHERE
partition_day
>=
'20200627'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
...
...
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