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
bfd79938
Commit
bfd79938
authored
Jul 07, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
9828d211
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
16 deletions
+18
-16
meigou_detail_page_dispense_pv.sql
...gou_detail_page/report/meigou_detail_page_dispense_pv.sql
+4
-2
meigou_detail_page_dispense_uv.sql
...gou_detail_page/report/meigou_detail_page_dispense_uv.sql
+2
-2
meigou_detail_page_source_pv.sql
...eigou_detail_page/report/meigou_detail_page_source_pv.sql
+6
-6
meigou_detail_page_source_uv.sql
...eigou_detail_page/report/meigou_detail_page_source_uv.sql
+6
-6
No files found.
pm/meigou_detail_page/report/meigou_detail_page_dispense_pv.sql
View file @
bfd79938
SET
mapreduce
.
job
.
queuename
=
data
;
--美购详情页的分发
--美购详情页的分发
SELECT
`日期`
,
`设备类型`
,
`活跃类型`
,
`渠道`
SELECT
`日期`
,
`设备类型`
,
`活跃类型`
,
`渠道`
,
`美购详情页浏览pv`
,
`美购详情页浏览pv`
...
@@ -76,8 +78,8 @@ FROM
...
@@ -76,8 +78,8 @@ FROM
FROM
ml
.
ml_d_ct_dv_devicespam_d
FROM
ml
.
ml_d_ct_dv_devicespam_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
)
spam_pv
)
spam_pv
on
pv
.
cl_id
=
spam_pv
.
cl
_id
on
pv
.
cl_id
=
spam_pv
.
device
_id
WHERE
spam_pv
.
cl
_id
IS
NULL
WHERE
spam_pv
.
device
_id
IS
NULL
UNION
ALL
UNION
ALL
...
...
pm/meigou_detail_page/report/meigou_detail_page_dispense_uv.sql
View file @
bfd79938
...
@@ -76,8 +76,8 @@ FROM
...
@@ -76,8 +76,8 @@ FROM
FROM
ml
.
ml_d_ct_dv_devicespam_d
FROM
ml
.
ml_d_ct_dv_devicespam_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
)
spam_pv
)
spam_pv
on
uv
.
cl_id
=
spam_pv
.
cl
_id
on
uv
.
cl_id
=
spam_pv
.
device
_id
WHERE
spam_pv
.
cl
_id
IS
NULL
WHERE
spam_pv
.
device
_id
IS
NULL
UNION
ALL
UNION
ALL
...
...
pm/meigou_detail_page/report/meigou_detail_page_source_pv.sql
View file @
bfd79938
...
@@ -250,8 +250,8 @@ FROM
...
@@ -250,8 +250,8 @@ FROM
FROM
ml
.
ml_d_ct_dv_devicespam_d
FROM
ml
.
ml_d_ct_dv_devicespam_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
)
spam_pv
)
spam_pv
on
t1
.
cl_id
=
spam_pv
.
cl
_id
on
t1
.
cl_id
=
spam_pv
.
device
_id
WHERE
spam_pv
.
cl
_id
IS
NULL
WHERE
spam_pv
.
device
_id
IS
NULL
)
t1
)
t1
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
...
@@ -334,8 +334,8 @@ LEFT JOIN
...
@@ -334,8 +334,8 @@ LEFT JOIN
FROM
ml
.
ml_d_ct_dv_devicespam_d
FROM
ml
.
ml_d_ct_dv_devicespam_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
)
spam_pv
)
spam_pv
on
t1
.
cl_id
=
spam_pv
.
cl
_id
on
t1
.
cl_id
=
spam_pv
.
device
_id
WHERE
spam_pv
.
cl
_id
IS
NULL
WHERE
spam_pv
.
device
_id
IS
NULL
)
t1
)
t1
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
...
@@ -486,8 +486,8 @@ LEFT JOIN
...
@@ -486,8 +486,8 @@ LEFT JOIN
FROM
ml
.
ml_d_ct_dv_devicespam_d
FROM
ml
.
ml_d_ct_dv_devicespam_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
)
spam_pv
)
spam_pv
on
t1
.
cl_id
=
spam_pv
.
cl
_id
on
t1
.
cl_id
=
spam_pv
.
device
_id
WHERE
spam_pv
.
cl
_id
IS
NULL
WHERE
spam_pv
.
device
_id
IS
NULL
)
t1
)
t1
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
...
...
pm/meigou_detail_page/report/meigou_detail_page_source_uv.sql
View file @
bfd79938
...
@@ -244,8 +244,8 @@ FROM
...
@@ -244,8 +244,8 @@ FROM
FROM
ml
.
ml_d_ct_dv_devicespam_d
FROM
ml
.
ml_d_ct_dv_devicespam_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
)
spam_pv
)
spam_pv
on
t1
.
cl_id
=
spam_pv
.
cl
_id
on
t1
.
cl_id
=
spam_pv
.
device
_id
WHERE
spam_pv
.
cl
_id
IS
NULL
WHERE
spam_pv
.
device
_id
IS
NULL
)
t1
)
t1
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
...
@@ -328,8 +328,8 @@ LEFT JOIN
...
@@ -328,8 +328,8 @@ LEFT JOIN
FROM
ml
.
ml_d_ct_dv_devicespam_d
FROM
ml
.
ml_d_ct_dv_devicespam_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
)
spam_pv
)
spam_pv
on
t1
.
cl_id
=
spam_pv
.
cl
_id
on
t1
.
cl_id
=
spam_pv
.
device
_id
WHERE
spam_pv
.
cl
_id
IS
NULL
WHERE
spam_pv
.
device
_id
IS
NULL
)
t1
)
t1
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
...
@@ -480,8 +480,8 @@ LEFT JOIN
...
@@ -480,8 +480,8 @@ LEFT JOIN
FROM
ml
.
ml_d_ct_dv_devicespam_d
FROM
ml
.
ml_d_ct_dv_devicespam_d
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
WHERE
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
)
spam_pv
)
spam_pv
on
t1
.
cl_id
=
spam_pv
.
cl
_id
on
t1
.
cl_id
=
spam_pv
.
device
_id
WHERE
spam_pv
.
cl
_id
IS
NULL
WHERE
spam_pv
.
device
_id
IS
NULL
)
t1
)
t1
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
LATERAL
VIEW
explode
(
t1
.
channel
)
t2
AS
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
GROUP
BY
t1
.
partition_date
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
...
...
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