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
0ae05863
Commit
0ae05863
authored
Aug 30, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
89117de6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
daily_content_data.sql
pm/daily_content_data/etl/daily_content_data.sql
+10
-4
No files found.
pm/daily_content_data/etl/daily_content_data.sql
View file @
0ae05863
...
...
@@ -14,6 +14,8 @@ CREATE TEMPORARY FUNCTION convup AS 'com.gmei.hive.common.udf.UDFConvUpgrade';
INSERT
OVERWRITE
TABLE
pm
.
tl_pm_content_d
PARTITION
(
PARTITION_DAY
=
${
partition_day
}
)
SELECT
T1
.
partition_date
AS
day_id
,
T1
.
device_os_type
AS
device_os_type
...
...
@@ -615,7 +617,8 @@ LEFT JOIN
AND
page_name
=
'home'
AND
action
=
'on_click_card'
AND
params
[
'transaction_type'
]
not
in
(
'-1'
,
'smr'
,
'hotspot'
,
'pgc'
,
'newdata'
,
'hotspot_feed'
,
'aistragegy'
,
'excestragegy'
,
'fixedstragegy'
,
'fixedstragegy_video'
)
and
params
[
'transaction_type'
]
not
like
'%ctr'
or
params
[
'transaction_type'
]
like
'%cvr'
)
and
params
[
'transaction_type'
]
not
like
'%ctr'
and
params
[
'transaction_type'
]
not
like
'%cvr'
AND
params
[
'card_content_type'
]
IN
(
'diary'
,
'diary_topic'
,
'user_post'
,
'doctor_post'
,
'question'
,
'answer'
,
'qa'
,
'live'
,
'article'
)
UNION
ALL
...
...
@@ -628,7 +631,8 @@ LEFT JOIN
AND
page_name
=
'home'
AND
action
in
(
'on_click_diary_card'
,
'on_click_answer_card'
,
'on_click_question_card'
,
'on_click_topic_card'
,
'on_click_live_card'
)
AND
params
[
'transaction_type'
]
not
in
(
'-1'
,
'smr'
,
'hotspot'
,
'pgc'
,
'newdata'
,
'hotspot_feed'
,
'aistragegy'
,
'excestragegy'
,
'fixedstragegy'
,
'fixedstragegy_video'
)
and
params
[
'transaction_type'
]
not
like
'%ctr'
or
params
[
'transaction_type'
]
like
'%cvr'
)
and
params
[
'transaction_type'
]
not
like
'%ctr'
and
params
[
'transaction_type'
]
not
like
'%cvr'
UNION
ALL
...
...
@@ -640,7 +644,7 @@ LEFT JOIN
AND
page_name
=
'home'
AND
action
=
'on_click_card'
AND
(
params
[
'transaction_type'
]
in
(
'-1'
,
'smr'
,
'hotspot'
,
'pgc'
,
'newdata'
,
'hotspot_feed'
,
'aistragegy'
,
'excestragegy'
,
'fixedstragegy'
,
'fixedstragegy_video'
)
or
params
[
'transaction_type'
]
like
'%ctr'
or
params
[
'transaction_type'
]
like
'%cvr'
)
)
or
params
[
'transaction_type'
]
like
'%ctr'
or
params
[
'transaction_type'
]
like
'%cvr'
)
AND
params
[
'card_content_type'
]
IN
(
'diary'
,
'diary_topic'
,
'user_post'
,
'doctor_post'
,
'question'
,
'answer'
,
'qa'
,
'live'
,
'article'
)
UNION
ALL
...
...
@@ -653,7 +657,7 @@ LEFT JOIN
AND
page_name
=
'home'
AND
action
in
(
'on_click_diary_card'
,
'on_click_answer_card'
,
'on_click_question_card'
,
'on_click_topic_card'
,
'on_click_live_card'
)
AND
(
params
[
'transaction_type'
]
in
(
'-1'
,
'smr'
,
'hotspot'
,
'pgc'
,
'newdata'
,
'hotspot_feed'
,
'aistragegy'
,
'excestragegy'
,
'fixedstragegy'
,
'fixedstragegy_video'
)
or
params
[
'transaction_type'
]
like
'%ctr'
or
params
[
'transaction_type'
]
like
'%cvr'
)
)
or
params
[
'transaction_type'
]
like
'%ctr'
or
params
[
'transaction_type'
]
like
'%cvr'
)
)
t2
ON
t1
.
partition_date
=
t2
.
partition_date
AND
t1
.
device_id
=
t2
.
cl_id
...
...
@@ -1165,3 +1169,5 @@ ON T1.partition_date=T9.partition_date
AND
T1
.
channel
=
T9
.
channel
ORDER
BY
day_id
desc
,
device_os_type
,
active_type
,
is_ai_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