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
3777922e
Commit
3777922e
authored
Nov 21, 2018
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改统计参数
parent
bce3237b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
app_list.scala
eda/feededa/src/main/scala/com/gmei/app_list.scala
+4
-6
No files found.
eda/feededa/src/main/scala/com/gmei/app_list.scala
View file @
3777922e
...
...
@@ -319,8 +319,6 @@ object coincidence_xinyang {
)
all_id
.
createOrReplaceTempView
(
"all_id"
)
//* 所有获得用户列表的用户id
//1.重合用户的美购数
val
meigou_coincidence_num
=
sc
.
sql
(
...
...
@@ -379,7 +377,7 @@ object coincidence_xinyang {
meigou_pay_device_all
.
show
()
//截止目前获得的与新氧重合的用户数咨询统计
val
zixun_num_all
=
sc
.
sql
(
/*
val zixun_num_all = sc.sql(
s"""
|select count(ov.cl_id) as zixun_num_all
|from online.tl_hdfs_maidian_view ov left join coincidence_id
...
...
@@ -402,12 +400,12 @@ object coincidence_xinyang {
""".stripMargin
)
zixun_device_all.show()
*/
val
zixun_num_co
=
sc
.
sql
(
s
"""
|select count(ov.cl_id) as zixun_num_all
|from online.tl_hdfs_maidian_view ov left join all_id
|on ov.cl_id =
coincidence
_id.device_id
|on ov.cl_id =
all
_id.device_id
|where partition_date >= '20180501'
|and coincidence_id.device_id is not null
|and action = 'welfare_detail_click_message'
...
...
@@ -419,7 +417,7 @@ object coincidence_xinyang {
s
"""
|select count(distinct(ov.cl_id)) as zixun_num_all
|from online.tl_hdfs_maidian_view ov left join all_id
|on ov.cl_id =
coincidence
_id.device_id
|on ov.cl_id =
all
_id.device_id
|where partition_date >= '20180501'
|and coincidence_id.device_id is not null
|and action = 'welfare_detail_click_message'
...
...
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