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
1a2f7c42
Commit
1a2f7c42
authored
Jul 02, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
9573f07c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
60 deletions
+60
-60
meigou_detail_page_dispense_pv.sql
sqls/meigou_detail_page/meigou_detail_page_dispense_pv.sql
+23
-23
meigou_detail_page_dispense_uv.sql
sqls/meigou_detail_page/meigou_detail_page_dispense_uv.sql
+21
-21
meigou_detail_page_source_pv.sql
sqls/meigou_detail_page/meigou_detail_page_source_pv.sql
+8
-8
meigou_detail_page_source_uv.sql
sqls/meigou_detail_page/meigou_detail_page_source_uv.sql
+8
-8
No files found.
sqls/meigou_detail_page/meigou_detail_page_dispense_pv.sql
View file @
1a2f7c42
...
...
@@ -65,8 +65,8 @@ FROM
(
SELECT
partition_date
,
cl_id
,
'美购详情页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
((
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'page_view'
)
pv
...
...
@@ -89,8 +89,8 @@ FROM
SELECT
partition_date
,
cl_id
,
'加购物车'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
((
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'welfare_multiattribute_click_add'
...
...
@@ -98,7 +98,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'右上角购物车'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_navbar_cart'
...
...
@@ -107,7 +107,7 @@ FROM
--点击查看更多评论
SELECT
partition_date
,
cl_id
,
'评价列表页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_comment'
...
...
@@ -116,7 +116,7 @@ FROM
--点击外显的评价标签
SELECT
partition_date
,
cl_id
,
'评价列表页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'service_comment_click_tag'
...
...
@@ -125,7 +125,7 @@ FROM
--点击外显的日记卡片
SELECT
partition_date
,
cl_id
,
'评价列表页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'welfare_detail_comment_click_diary_card'
...
...
@@ -134,7 +134,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'立即支付'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'welfare_multiattribute_click_buy'
...
...
@@ -143,7 +143,7 @@ FROM
--点击选择更美项目
SELECT
partition_date
,
cl_id
,
'选择美购项目'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_button'
...
...
@@ -153,7 +153,7 @@ FROM
--7.22新版本--点击外露的美购项目
SELECT
partition_date
,
cl_id
,
'选择美购项目'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_button'
...
...
@@ -163,7 +163,7 @@ FROM
--7.22新版本--点击查看更多
SELECT
partition_date
,
cl_id
,
'选择美购项目'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_button'
...
...
@@ -173,7 +173,7 @@ FROM
--点击私信按钮
SELECT
partition_date
,
cl_id
,
'私信及电话咨询'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_message'
...
...
@@ -182,7 +182,7 @@ FROM
--7.20之后灰度上线的快捷咨询按钮和预约面诊按钮
SELECT
partition_date
,
cl_id
,
'私信及电话咨询'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_button'
...
...
@@ -192,7 +192,7 @@ FROM
--点击机构下面的在线咨询和电话咨询
SELECT
partition_date
,
cl_id
,
'私信及电话咨询'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_curearea_contact'
...
...
@@ -202,7 +202,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'机构主页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_curearea'
...
...
@@ -212,7 +212,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'机构的其他美购'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_seller_service_item'
...
...
@@ -221,7 +221,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'机构导航'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_address'
...
...
@@ -230,7 +230,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'推荐美购'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_card'
...
...
@@ -241,7 +241,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'收藏'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_favor'
...
...
@@ -252,7 +252,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'医生主页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_curearea'
...
...
@@ -262,7 +262,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'分享'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'page_click_share'
...
...
@@ -291,7 +291,7 @@ FROM
FROM
al
.
al_pm_ct_dv_deviceappversionrollbackfrom20200101_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
2
)
,
'-'
,
''
))
a
ON
m
.
device_id
=
a
.
device_id
where
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
where
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
active_type
in
(
'1'
,
'2'
,
'4'
)
and
first_channel_source_type
not
in
(
'yqxiu1'
,
'yqxiu2'
,
'yqxiu3'
,
'yqxiu4'
,
'yqxiu5'
,
'mxyc1'
,
'mxyc2'
,
'mxyc3'
...
...
sqls/meigou_detail_page/meigou_detail_page_dispense_uv.sql
View file @
1a2f7c42
...
...
@@ -65,7 +65,7 @@ FROM
(
SELECT
partition_date
,
cl_id
,
'美购详情页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'page_view'
...
...
@@ -89,7 +89,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'加购物车'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'welfare_multiattribute_click_add'
...
...
@@ -98,7 +98,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'右上角购物车'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_navbar_cart'
...
...
@@ -107,7 +107,7 @@ FROM
--点击查看更多评论
SELECT
partition_date
,
cl_id
,
'评价列表页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_comment'
...
...
@@ -116,7 +116,7 @@ FROM
--点击外显的评价标签
SELECT
partition_date
,
cl_id
,
'评价列表页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'service_comment_click_tag'
...
...
@@ -125,7 +125,7 @@ FROM
--点击外显的日记卡片
SELECT
partition_date
,
cl_id
,
'评价列表页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'welfare_detail_comment_click_diary_card'
...
...
@@ -134,7 +134,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'立即支付'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'welfare_multiattribute_click_buy'
...
...
@@ -143,7 +143,7 @@ FROM
--点击选择更美项目
SELECT
partition_date
,
cl_id
,
'选择美购项目'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_button'
...
...
@@ -153,7 +153,7 @@ FROM
--7.22新版本--点击外露的美购项目
SELECT
partition_date
,
cl_id
,
'选择美购项目'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_button'
...
...
@@ -163,7 +163,7 @@ FROM
--7.22新版本--点击查看更多
SELECT
partition_date
,
cl_id
,
'选择美购项目'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_button'
...
...
@@ -173,7 +173,7 @@ FROM
--点击私信按钮
SELECT
partition_date
,
cl_id
,
'私信及电话咨询'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_message'
...
...
@@ -182,7 +182,7 @@ FROM
--7.20之后灰度上线的快捷咨询按钮和预约面诊按钮
SELECT
partition_date
,
cl_id
,
'私信及电话咨询'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_button'
...
...
@@ -192,7 +192,7 @@ FROM
--点击机构下面的在线咨询和电话咨询
SELECT
partition_date
,
cl_id
,
'私信及电话咨询'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_curearea_contact'
...
...
@@ -202,7 +202,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'机构主页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_curearea'
...
...
@@ -212,7 +212,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'机构的其他美购'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_seller_service_item'
...
...
@@ -221,7 +221,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'机构导航'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_address'
...
...
@@ -230,7 +230,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'推荐美购'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_card'
...
...
@@ -241,7 +241,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'收藏'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_favor'
...
...
@@ -252,7 +252,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'医生主页'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_curearea'
...
...
@@ -262,7 +262,7 @@ FROM
SELECT
partition_date
,
cl_id
,
'分享'
as
type
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'page_click_share'
...
...
@@ -291,7 +291,7 @@ FROM
FROM
al
.
al_pm_ct_dv_deviceappversionrollbackfrom20200101_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
2
)
,
'-'
,
''
))
a
ON
m
.
device_id
=
a
.
device_id
where
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
where
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
active_type
in
(
'1'
,
'2'
,
'4'
)
and
first_channel_source_type
not
in
(
'yqxiu1'
,
'yqxiu2'
,
'yqxiu3'
,
'yqxiu4'
,
'yqxiu5'
,
'mxyc1'
,
'mxyc2'
,
'mxyc3'
...
...
sqls/meigou_detail_page/meigou_detail_page_source_pv.sql
View file @
1a2f7c42
...
...
@@ -201,7 +201,7 @@ FROM
(
SELECT
partition_date
,
page_name
,
cl_id
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'page_view'
...
...
@@ -230,7 +230,7 @@ FROM
FROM
al
.
al_pm_ct_dv_deviceappversionrollbackfrom20200101_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
2
)
,
'-'
,
''
))
a
ON
m
.
device_id
=
a
.
device_id
where
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
where
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
active_type
in
(
'1'
,
'2'
,
'4'
)
and
first_channel_source_type
not
in
(
'yqxiu1'
,
'yqxiu2'
,
'yqxiu3'
,
'yqxiu4'
,
'yqxiu5'
,
'mxyc1'
,
'mxyc2'
,
'mxyc3'
...
...
@@ -291,7 +291,7 @@ LEFT JOIN
(
SELECT
partition_date
,
referrer
,
cl_id
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'page_view'
...
...
@@ -320,7 +320,7 @@ LEFT JOIN
FROM
al
.
al_pm_ct_dv_deviceappversionrollbackfrom20200101_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
2
)
,
'-'
,
''
))
a
ON
m
.
device_id
=
a
.
device_id
where
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
where
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
active_type
in
(
'1'
,
'2'
,
'4'
)
and
first_channel_source_type
not
in
(
'yqxiu1'
,
'yqxiu2'
,
'yqxiu3'
,
'yqxiu4'
,
'yqxiu5'
,
'mxyc1'
,
'mxyc2'
,
'mxyc3'
...
...
@@ -418,7 +418,7 @@ LEFT JOIN
(
--点击加车/支付
SELECT
partition_date
,
referrer
,
action
,
cl_id
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
in
(
'welfare_multiattribute_click_add'
,
'welfare_multiattribute_click_buy'
)
...
...
@@ -427,7 +427,7 @@ LEFT JOIN
--点击私信按钮
SELECT
partition_date
,
referrer
,
action
,
cl_id
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_message'
...
...
@@ -443,7 +443,7 @@ LEFT JOIN
(
SELECT
partition_date
,
params
[
'referrer_link'
]
as
referrer_link
,
cl_id
,
action
,
json_split
(
params
[
'referrer_link'
],
'string'
)
as
a
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_button'
...
...
@@ -478,7 +478,7 @@ LEFT JOIN
FROM
al
.
al_pm_ct_dv_deviceappversionrollbackfrom20200101_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
2
)
,
'-'
,
''
))
a
ON
m
.
device_id
=
a
.
device_id
where
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
where
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
active_type
in
(
'1'
,
'2'
,
'4'
)
and
first_channel_source_type
not
in
(
'yqxiu1'
,
'yqxiu2'
,
'yqxiu3'
,
'yqxiu4'
,
'yqxiu5'
,
'mxyc1'
,
'mxyc2'
,
'mxyc3'
...
...
sqls/meigou_detail_page/meigou_detail_page_source_uv.sql
View file @
1a2f7c42
...
...
@@ -195,7 +195,7 @@ FROM
(
SELECT
partition_date
,
page_name
,
cl_id
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'page_view'
...
...
@@ -224,7 +224,7 @@ FROM
FROM
al
.
al_pm_ct_dv_deviceappversionrollbackfrom20200101_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
2
)
,
'-'
,
''
))
a
ON
m
.
device_id
=
a
.
device_id
where
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
where
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
active_type
in
(
'1'
,
'2'
,
'4'
)
and
first_channel_source_type
not
in
(
'yqxiu1'
,
'yqxiu2'
,
'yqxiu3'
,
'yqxiu4'
,
'yqxiu5'
,
'mxyc1'
,
'mxyc2'
,
'mxyc3'
...
...
@@ -285,7 +285,7 @@ LEFT JOIN
(
SELECT
partition_date
,
referrer
,
cl_id
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'page_view'
...
...
@@ -314,7 +314,7 @@ LEFT JOIN
FROM
al
.
al_pm_ct_dv_deviceappversionrollbackfrom20200101_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
2
)
,
'-'
,
''
))
a
ON
m
.
device_id
=
a
.
device_id
where
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
where
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
active_type
in
(
'1'
,
'2'
,
'4'
)
and
first_channel_source_type
not
in
(
'yqxiu1'
,
'yqxiu2'
,
'yqxiu3'
,
'yqxiu4'
,
'yqxiu5'
,
'mxyc1'
,
'mxyc2'
,
'mxyc3'
...
...
@@ -412,7 +412,7 @@ LEFT JOIN
(
--点击加车/支付
SELECT
partition_date
,
referrer
,
action
,
cl_id
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
in
(
'welfare_multiattribute_click_add'
,
'welfare_multiattribute_click_buy'
)
...
...
@@ -421,7 +421,7 @@ LEFT JOIN
--点击私信按钮
SELECT
partition_date
,
referrer
,
action
,
cl_id
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
--AND page_name = 'welfare_detail'
AND
action
=
'welfare_detail_click_message'
...
...
@@ -437,7 +437,7 @@ LEFT JOIN
(
SELECT
partition_date
,
params
[
'referrer_link'
]
as
referrer_link
,
cl_id
,
action
,
json_split
(
params
[
'referrer_link'
],
'string'
)
as
a
FROM
online
.
bl_hdfs_maidian_updates
WHERE
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
WHERE
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
page_name
=
'welfare_detail'
AND
action
=
'on_click_button'
...
...
@@ -472,7 +472,7 @@ LEFT JOIN
FROM
al
.
al_pm_ct_dv_deviceappversionrollbackfrom20200101_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
2
)
,
'-'
,
''
))
a
ON
m
.
device_id
=
a
.
device_id
where
partition_date
>=
regexp_replace
(
(
current_date
-
interval
'90'
day
)
,
'-'
,
''
)
where
partition_date
>=
regexp_replace
(
DATE_SUB
(
current_date
,
90
)
,
'-'
,
''
)
AND
partition_date
<
regexp_replace
((
current_date
),
'-'
,
''
)
AND
active_type
in
(
'1'
,
'2'
,
'4'
)
and
first_channel_source_type
not
in
(
'yqxiu1'
,
'yqxiu2'
,
'yqxiu3'
,
'yqxiu4'
,
'yqxiu5'
,
'mxyc1'
,
'mxyc2'
,
'mxyc3'
...
...
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