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
a3bc3d3f
Commit
a3bc3d3f
authored
Nov 11, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'weiyimin' into 'master'
push codes See merge request
!107
parents
5afc6e62
cd9db356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
daily_push.sql
pm/daily_push/etl/daily_push.sql
+2
-1
No files found.
pm/daily_push/etl/daily_push.sql
View file @
a3bc3d3f
...
...
@@ -401,6 +401,7 @@ full join
,
device_id
,
msg_id
,
'ios'
as
device_os_type
from
bl
.
bl_et_bg_trackingpushlog_inc_d
where
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
and
(
device_type
is
null
or
device_type
=
'ios'
)
--在7.35新增了android的埋点,故7.35之后新增了device_type字段
group
by
partition_day
,
device_id
,
msg_id
union
all
...
...
@@ -492,7 +493,7 @@ FROM
FROM
(
select
partition_day
,
device_id
,
msg_id
,
device_id
,
msg_id
,
case
when
device_type
=
'android'
then
'android'
else
'ios'
end
as
device_os_type
from
bl
.
bl_et_bg_trackingpushlog_inc_d
where
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
group
by
partition_day
,
device_id
,
msg_id
...
...
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