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
335b5959
Commit
335b5959
authored
Jul 02, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
cb2b5d46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
daily_content_data_insert.sql
sqls/daily_content_data_insert/daily_content_data_insert.sql
+9
-9
No files found.
sqls/daily_content_data_insert/daily_content_data_insert.sql
View file @
335b5959
...
@@ -99,7 +99,7 @@ FROM
...
@@ -99,7 +99,7 @@ FROM
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
longyuzhixi
ng%'
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
jingme
ng%'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
...
@@ -167,7 +167,7 @@ LEFT JOIN
...
@@ -167,7 +167,7 @@ LEFT JOIN
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
longyuzhixi
ng%'
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
jingme
ng%'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
...
@@ -260,7 +260,7 @@ LEFT JOIN
...
@@ -260,7 +260,7 @@ LEFT JOIN
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
longyuzhixi
ng%'
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
jingme
ng%'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
...
@@ -339,7 +339,7 @@ LEFT JOIN
...
@@ -339,7 +339,7 @@ LEFT JOIN
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
longyuzhixi
ng%'
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
jingme
ng%'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
...
@@ -430,7 +430,7 @@ LEFT JOIN
...
@@ -430,7 +430,7 @@ LEFT JOIN
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
longyuzhixi
ng%'
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
jingme
ng%'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
...
@@ -542,7 +542,7 @@ LEFT JOIN
...
@@ -542,7 +542,7 @@ LEFT JOIN
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
longyuzhixi
ng%'
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
jingme
ng%'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
...
@@ -677,7 +677,7 @@ LEFT JOIN
...
@@ -677,7 +677,7 @@ LEFT JOIN
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
longyuzhixi
ng%'
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
jingme
ng%'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
...
@@ -872,7 +872,7 @@ LEFT JOIN
...
@@ -872,7 +872,7 @@ LEFT JOIN
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
longyuzhixi
ng%'
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
jingme
ng%'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
...
@@ -1069,7 +1069,7 @@ LEFT JOIN
...
@@ -1069,7 +1069,7 @@ LEFT JOIN
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
WHEN
active_type
in
(
'1'
,
'2'
)
then
'新增设备'
END
as
active_type
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
,
array
(
CASE
WHEN
first_channel_source_type
like
'%xinyouxingkong%'
or
a
.
device_id
is
not
NULL
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
in
(
'promotion_aisi'
,
'promotion_koomobi_km00'
,
'promotion_koomobi_km01'
)
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
longyuzhixi
ng%'
or
first_channel_source_type
like
'%longyuzhixing%'
or
first_channel_source_type
like
'%
jingme
ng%'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
or
first_channel_source_type
like
'%mailuo%'
THEN
'可疑'
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
...
...
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