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
086a628f
Commit
086a628f
authored
Oct 16, 2021
by
fan.jiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug com.topon_topltv_1015
parent
68561a03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ComToponTopltv1015.scala
...scala/mobvista/dmp/datasource/dm/ComToponTopltv1015.scala
+2
-2
No files found.
src/main/scala/mobvista/dmp/datasource/dm/ComToponTopltv1015.scala
View file @
086a628f
...
...
@@ -155,8 +155,8 @@ class ComToponTopltv1015 extends CommonSparkJob with Serializable {
val
imei_df_with_country
=
imei_df
.
select
(
concat_ws
(
"\t"
,
imei_df
.
col
(
"device_id"
),
lit
(
"imei"
),
lit
(
"android"
),
lit
(
"CN"
)))
val
oaid_df
:
DataFrame
=
spark
.
sql
(
oaid_sql
).
persist
(
StorageLevel
.
MEMORY_AND_DISK_SER
)
val
oaid_df_with_package_name
=
oaid_df
.
select
(
concat_ws
(
"\t"
,
oaid_df
.
col
(
"device_id"
),
lit
(
"
imei
"
),
lit
(
"android"
),
lit
(
"[\"com.topon_topltv_1015\"]"
)))
val
oaid_df_with_country
=
oaid_df
.
select
(
concat_ws
(
"\t"
,
oaid_df
.
col
(
"device_id"
),
lit
(
"
imei
"
),
lit
(
"android"
),
lit
(
"CN"
)))
val
oaid_df_with_package_name
=
oaid_df
.
select
(
concat_ws
(
"\t"
,
oaid_df
.
col
(
"device_id"
),
lit
(
"
oaid
"
),
lit
(
"android"
),
lit
(
"[\"com.topon_topltv_1015\"]"
)))
val
oaid_df_with_country
=
oaid_df
.
select
(
concat_ws
(
"\t"
,
oaid_df
.
col
(
"device_id"
),
lit
(
"
oaid
"
),
lit
(
"android"
),
lit
(
"CN"
)))
imei_df_with_package_name
.
union
(
oaid_df_with_package_name
).
coalesce
(
coalesce
.
toInt
).
write
.
format
(
"text"
).
mode
(
"overwrite"
).
save
(
output01
)
imei_df_with_country
.
union
(
oaid_df_with_country
).
coalesce
(
coalesce
.
toInt
).
write
.
format
(
"text"
).
mode
(
"overwrite"
).
save
(
output02
)
...
...
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