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
ef211c82
Commit
ef211c82
authored
Dec 28, 2018
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smart_rank 相关的统计指标
parent
62a25986
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
temp_analysis.scala
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
+6
-8
No files found.
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
View file @
ef211c82
...
@@ -617,14 +617,12 @@ object smart_rank_count {
...
@@ -617,14 +617,12 @@ object smart_rank_count {
val
user_city_meigou_view
=
sc
.
sql
(
val
user_city_meigou_view
=
sc
.
sql
(
s
"""
s
"""
|select ov.cl_id as device_id,ov.city_id as device_city,ov.params['business_id'] as meigou_id
|select cl_id as device_id,city_id as device_city,params['business_id'] as meigou_id
|from online.tl_hdfs_maidian_view ov left join final_id
|from online.tl_hdfs_maidian_view
|on ov.cl_id = final_id.device_id
|where action = "page_view"
|where ov.action = "page_view"
|and params['page_name']="welfare_detail"
|and ov.params['page_name']="welfare_detail"
|and partition_date >='20181201'
|and ov.partition_date >='20181201'
|and city_id is not null
|and ov.city_id is not null
|and final_id.device_id is null
"""
.
stripMargin
"""
.
stripMargin
)
)
user_city_meigou_view
.
show
()
user_city_meigou_view
.
show
()
...
...
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