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
bd492f9a
Commit
bd492f9a
authored
Dec 28, 2021
by
WangJinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tracking etl job
parent
6b3ba3b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
AdnOrgLogEtlHours.scala
...scala/mobvista/dmp/datasource/adn/AdnOrgLogEtlHours.scala
+8
-3
No files found.
src/main/scala/mobvista/dmp/datasource/adn/AdnOrgLogEtlHours.scala
View file @
bd492f9a
...
...
@@ -120,6 +120,11 @@ class AdnOrgLogEtlHours extends CommonSparkJob with Serializable {
}
else
{
""
}
val
f_ruid
=
if
(
StringUtils
.
isNotBlank
(
ruid
)
&&
ruid
.
length
>
16
)
{
ruid
}
else
{
""
}
var
f_platform
=
if
(
StringUtils
.
isNotBlank
(
platform
))
{
platform
.
toLowerCase
()
...
...
@@ -129,7 +134,7 @@ class AdnOrgLogEtlHours extends CommonSparkJob with Serializable {
f_platform
=
if
(
f_platform
.
contains
(
"ios"
)
||
f_platform
.
contains
(
"iphone"
)
||
deviceBrand
.
toLowerCase
.
contains
(
"apple"
)
||
deviceModel
.
toLowerCase
.
contains
(
"iphone"
)
||
deviceModel
.
toLowerCase
.
contains
(
"ipad"
)
||
osVersion
.
toLowerCase
.
contains
(
"ios"
)
||
StringUtils
.
isNotBlank
(
f_idfa
)
||
StringUtils
.
isNotBlank
(
f_idfv
))
{
||
StringUtils
.
isNotBlank
(
f_idfa
)
||
StringUtils
.
isNotBlank
(
f_idfv
)
||
StringUtils
.
isNotBlank
(
f_ruid
)
)
{
"ios"
}
else
if
(
f_platform
.
contains
(
"android"
)
||
osVersion
.
toLowerCase
.
contains
(
"android"
)
||
StringUtils
.
isNotBlank
(
f_imei
)
||
StringUtils
.
isNotBlank
(
f_androidId
)
||
StringUtils
.
isNotBlank
(
f_oaid
)
||
StringUtils
.
isNotBlank
(
f_gaid
))
{
...
...
@@ -138,10 +143,10 @@ class AdnOrgLogEtlHours extends CommonSparkJob with Serializable {
"other"
}
if
((
StringUtils
.
isNotBlank
(
f_idfa
)
||
StringUtils
.
isNotBlank
(
f_idfv
)
||
StringUtils
.
isNotBlank
(
f_imei
)
||
StringUtils
.
isNotBlank
(
f_androidId
)
||
StringUtils
.
isNotBlank
(
f_oaid
)
||
StringUtils
.
isNotBlank
(
f_gaid
)
||
StringUtils
.
isNotBlank
(
f_sysId
)
||
StringUtils
.
isNotBlank
(
ruid
))
&&
StringUtils
.
isNotBlank
(
f_oaid
)
||
StringUtils
.
isNotBlank
(
f_gaid
)
||
StringUtils
.
isNotBlank
(
f_sysId
)
||
StringUtils
.
isNotBlank
(
f_
ruid
))
&&
!
"other"
.
equals
(
f_platform
))
{
MRUtils
.
JOINER
.
join
(
date
,
time
,
timestamp
,
appId
,
f_platform
,
osVersion
,
sdkVersion
,
deviceModel
,
screenSize
,
countryCode
,
language
,
ip
,
f_imei
,
mac
,
f_androidId
,
f_gaid
,
f_idfa
,
deviceBrand
,
f_sysId
,
packageName
,
strategy
,
f_oaid
,
f_idfv
,
ruid
)
language
,
ip
,
f_imei
,
mac
,
f_androidId
,
f_gaid
,
f_idfa
,
deviceBrand
,
f_sysId
,
packageName
,
strategy
,
f_oaid
,
f_idfv
,
f_
ruid
)
}
else
{
null
}
...
...
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