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
5d5e95e5
Commit
5d5e95e5
authored
Nov 04, 2021
by
fan.jiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add other business data to dwh.ods_dmp_user_info_daily
parent
8c7555e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
OdsDmpUserInfoDailyV2.scala
...obvista/dmp/datasource/device/OdsDmpUserInfoDailyV2.scala
+1
-1
No files found.
src/main/scala/mobvista/dmp/datasource/device/OdsDmpUserInfoDailyV2.scala
View file @
5d5e95e5
...
@@ -113,7 +113,7 @@ class OdsDmpUserInfoDailyV2 extends CommonSparkJob with Serializable {
...
@@ -113,7 +113,7 @@ class OdsDmpUserInfoDailyV2 extends CommonSparkJob with Serializable {
|union all
|union all
|select lower(device_id) device_id,device_type,platform,country
|select lower(device_id) device_id,device_type,platform,country
|from dwh.ods_dmp_user_info
|from dwh.ods_dmp_user_info
|where dt='$yesBef2Str' and last_req_day='$yesBef2Part' and business in ('ga') ) X
|where dt='$yesBef2Str' and last_req_day='$yesBef2Part' and business in ('ga'
,'other'
) ) X
|group by X.device_id
|group by X.device_id
"""
.
stripMargin
"""
.
stripMargin
val
device_daily_df
=
spark
.
sql
(
hql
).
persist
(
StorageLevel
.
MEMORY_AND_DISK_SER
)
val
device_daily_df
=
spark
.
sql
(
hql
).
persist
(
StorageLevel
.
MEMORY_AND_DISK_SER
)
...
...
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