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
97ec8bcd
Commit
97ec8bcd
authored
Jun 10, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加新埋点
parent
f1389a60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
data_feed_exposure_precise.scala
.../src/main/scala/com/gmei/data_feed_exposure_precise.scala
+31
-2
No files found.
eda/feededa/src/main/scala/com/gmei/data_feed_exposure_precise.scala
View file @
97ec8bcd
...
...
@@ -552,7 +552,7 @@ object icon_train_data {
// 美购点击数据
val
meigou_click
=
sc
.
sql
(
val
meigou_click
_1
=
sc
.
sql
(
s
"""
|select cl_id as device_id, params['service_id'] as service_id
|from online.tl_hdfs_maidian_view
...
...
@@ -561,9 +561,38 @@ object icon_train_data {
|and params['service_id'] is not null
"""
.
stripMargin
)
meigou_click
.
show
()
meigou_click_1
.
show
()
meigou_click_1
.
createOrReplaceTempView
(
"meigou_click_1"
)
val
meigou_click_2
=
sc
.
sql
(
s
"""
|select cl_id as device_id, params['card_id'] as diary_id
|from online.tl_hdfs_maidian_view
|where action = 'on_click_card'
|and params['card_content_type']='service'
|and partition_date='${partition_date}'
|and params['card_id'] is not null
"""
.
stripMargin
)
diary_click_2
.
createOrReplaceTempView
(
"meigou_click_2"
)
val
meigou_click
=
sc
.
sql
(
s
"""
|select *
|from meigou_click_1
|union all
|select *
|from meigou_click_2
"""
.
stripMargin
)
meigou_click
.
createOrReplaceTempView
(
"meigou_click"
)
val
megou_order
=
sc
.
sql
(
s
"""
|SELECT device_id,service_id
...
...
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