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
645fc5ea
Commit
645fc5ea
authored
Jun 19, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回溯数据
parent
8ead042d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
data_feed_exposure_precise.scala
.../src/main/scala/com/gmei/data_feed_exposure_precise.scala
+5
-5
No files found.
eda/feededa/src/main/scala/com/gmei/data_feed_exposure_precise.scala
View file @
645fc5ea
...
@@ -477,9 +477,9 @@ object icon_train_data {
...
@@ -477,9 +477,9 @@ object icon_train_data {
sc
.
sql
(
"use jerry_prod"
)
sc
.
sql
(
"use jerry_prod"
)
val
stat_date
=
GmeiConfig
.
getMinusNDate
(
1
)
//昨天
//
val stat_date = GmeiConfig.getMinusNDate(1) //昨天
val
qian_date
=
GmeiConfig
.
getMinusNDate
(
2
)
//前天
val
qian_date
=
GmeiConfig
.
getMinusNDate
(
2
)
//前天
//
val stat_date = param.date
val
stat_date
=
param
.
date
//println(param.date)
//println(param.date)
val
partition_date
=
stat_date
.
replace
(
"-"
,
""
)
val
partition_date
=
stat_date
.
replace
(
"-"
,
""
)
...
@@ -600,7 +600,7 @@ object icon_train_data {
...
@@ -600,7 +600,7 @@ object icon_train_data {
|from online.ml_meigou_order_detail
|from online.ml_meigou_order_detail
|where partition_date='${partition_date}'
|where partition_date='${partition_date}'
|and device_id is not null
|and device_id is not null
|and validate_time >'${
qian
_date}'
|and validate_time >'${
stat
_date}'
|and validate_time <='${stat_date}'
|and validate_time <='${stat_date}'
"""
.
stripMargin
"""
.
stripMargin
)
)
...
@@ -806,8 +806,8 @@ object tag_value {
...
@@ -806,8 +806,8 @@ object tag_value {
import
sc.implicits._
import
sc.implicits._
val
stat_date
=
GmeiConfig
.
getMinusNDate
(
1
)
//
val stat_date = GmeiConfig.getMinusNDate(1)
//
val stat_date = param.date
val
stat_date
=
param
.
date
//println(param.date)
//println(param.date)
val
partition_date
=
stat_date
.
replace
(
"-"
,
""
)
val
partition_date
=
stat_date
.
replace
(
"-"
,
""
)
...
...
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