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
fb04a739
Commit
fb04a739
authored
Jan 17, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计多天重复日记数量
parent
c278309b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
temp_count.scala
eda/feededa/src/main/scala/com/gmei/temp_count.scala
+3
-3
No files found.
eda/feededa/src/main/scala/com/gmei/temp_count.scala
View file @
fb04a739
...
...
@@ -304,7 +304,7 @@ object Repeated_content_recommendation_moreday {
// val stat_date = GmeiConfig.getMinusNDate(1)
val
stat_date
=
"2019-01-0
5
"
val
stat_date
=
"2019-01-0
6
"
// val partition_date = stat_date.replace("-","")
...
...
@@ -318,8 +318,8 @@ object Repeated_content_recommendation_moreday {
|select stat_date,device_id,concat_ws(',',collect_set(distinct cid_id)) as expoure_diary
|from data_feed_exposure_precise
|where cid_type = 'diary'
|and stat_date >='2018-12-2
0
'
|and stat_date <'2019-01-0
5
'
|and stat_date >='2018-12-2
1
'
|and stat_date <'2019-01-0
6
'
|group by device_id,stat_date
"""
.
stripMargin
).
rdd
.
map
(
row
=>(
row
(
0
).
toString
,
row
(
1
).
toString
,
row
(
2
).
toString
)).
map
(
row
=>(
row
.
_2
,
row
.
_3
)).
groupByKey
()
...
...
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