Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mobvista-dmp
Project
Overview
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
王金锋
mobvista-dmp
Commits
52155ccd
Commit
52155ccd
authored
Oct 31, 2021
by
WangJinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix m all devid
parent
579a1180
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
InstallListLogic.scala
src/main/scala/mobvista/dmp/common/InstallListLogic.scala
+1
-1
MobvistaConstant.scala
src/main/scala/mobvista/dmp/common/MobvistaConstant.scala
+1
-1
No files found.
src/main/scala/mobvista/dmp/common/InstallListLogic.scala
View file @
52155ccd
...
@@ -37,7 +37,7 @@ class InstallListLogic extends CommonInstallListOrc {
...
@@ -37,7 +37,7 @@ class InstallListLogic extends CommonInstallListOrc {
spark
.
udf
.
register
(
"toJsonBySplit"
,
MobvistaConstant
.
toJsonBySplit
_
)
spark
.
udf
.
register
(
"toJsonBySplit"
,
MobvistaConstant
.
toJsonBySplit
_
)
spark
.
udf
.
register
(
"parseMExtData"
,
MobvistaConstant
.
parseMExtData
_
)
spark
.
udf
.
register
(
"parseMExtData"
,
MobvistaConstant
.
parseMExtData
_
)
sql
=
MobvistaConstant
.
adn_reuqest_sdk_sql
.
replace
(
"@dt"
,
date
)
sql
=
MobvistaConstant
.
adn_reuqest_sdk_sql
.
replace
(
"@dt"
,
date
)
.
replace
(
"@update_date"
,
expireD
ateTime
)
.
replace
(
"@update_date"
,
d
ateTime
)
case
"adn_request_unmatch"
=>
case
"adn_request_unmatch"
=>
spark
.
udf
.
register
(
"toJsonBySplit"
,
MobvistaConstant
.
toJsonBySplit
_
)
spark
.
udf
.
register
(
"toJsonBySplit"
,
MobvistaConstant
.
toJsonBySplit
_
)
spark
.
udf
.
register
(
"parseMExtData"
,
MobvistaConstant
.
parseMExtData
_
)
spark
.
udf
.
register
(
"parseMExtData"
,
MobvistaConstant
.
parseMExtData
_
)
...
...
src/main/scala/mobvista/dmp/common/MobvistaConstant.scala
View file @
52155ccd
...
@@ -62,7 +62,7 @@ object MobvistaConstant {
...
@@ -62,7 +62,7 @@ object MobvistaConstant {
val
adn_reuqest_sdk_unmatch_sql
:
String
=
val
adn_reuqest_sdk_unmatch_sql
:
String
=
"""
"""
|SELECT device_id, device_type, platform, MAX(country) country, toJsonBySplit(CONCAT_WS(';',COLLECT_SET(package_name)), platform,
'@update_date'
) install_list,
|SELECT device_id, device_type, platform, MAX(country) country, toJsonBySplit(CONCAT_WS(';',COLLECT_SET(package_name)), platform,
update_date
) install_list,
| parseMExtData(CONCAT_WS(',',COLLECT_SET(strategy)), CONCAT_WS(',',COLLECT_SET(region)), MAX(dev_tag)) ext_data
| parseMExtData(CONCAT_WS(',',COLLECT_SET(strategy)), CONCAT_WS(',',COLLECT_SET(region)), MAX(dev_tag)) ext_data
| FROM dwh.etl_adn_request_sdk_unmatch WHERE `dt` = '@dt' AND update_date >= '@update_date' AND check_device(device_id)
| FROM dwh.etl_adn_request_sdk_unmatch WHERE `dt` = '@dt' AND update_date >= '@update_date' AND check_device(device_id)
| GROUP BY device_id, device_type, platform
| GROUP BY device_id, device_type, platform
...
...
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