Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
a0f21c09
Commit
a0f21c09
authored
Dec 24, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
esmm data from 7days to 1day
parent
0323ece6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
EsmmData.scala
eda/feededa/src/main/scala/com/gmei/EsmmData.scala
+3
-3
No files found.
eda/feededa/src/main/scala/com/gmei/EsmmData.scala
View file @
a0f21c09
...
...
@@ -272,7 +272,7 @@ object EsmmPredData {
import
sc.implicits._
val
yesteday_have_seq
=
GmeiConfig
.
getMinusNDate
(
7
)
val
yesteday_have_seq
=
GmeiConfig
.
getMinusNDate
(
1
)
//nearby_data
val
raw_data
=
sc
.
sql
(
...
...
@@ -283,7 +283,7 @@ object EsmmPredData {
|select device_id,city_id,native_queue as merge_queue from ffm_diary_queue
|union
|select device_id,city_id,search_queue as merge_queue from search_queue) as tmp1
|where tmp1.device_id in (select distinct device_id from data_feed_click where stat_date
>
'${yesteday_have_seq}')
|where tmp1.device_id in (select distinct device_id from data_feed_click where stat_date
=
'${yesteday_have_seq}')
"""
.
stripMargin
)
raw_data
.
show
()
...
...
@@ -313,7 +313,7 @@ object EsmmPredData {
s
"""
|select distinct a.device_id,a.city_id,b.native_queue from data_feed_click a
|left join biz_feed_diary_queue b on a.city_id = b.city_id
|where a.stat_date
>
'${yesteday_have_seq}' and b.native_queue != ""
|where a.stat_date
=
'${yesteday_have_seq}' and b.native_queue != ""
"""
.
stripMargin
)
native_data
.
createOrReplaceTempView
(
"native_data"
)
...
...
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