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
23386807
Commit
23386807
authored
Dec 10, 2018
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
区别新老客户
parent
8803c25d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
testt.scala
eda/feededa/src/main/scala/com/gmei/testt.scala
+10
-10
No files found.
eda/feededa/src/main/scala/com/gmei/testt.scala
View file @
23386807
...
...
@@ -126,7 +126,7 @@ object testt {
//新用户到美购详情页的转化
val
diary_meigou_newUser
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(device_id) as diary_meigou_newUser
|select '${stat_date}' as stat_date, count(d
d.d
evice_id) as diary_meigou_newUser
|from diary_meigou_device dd left join device_id_new
|on dd.device_id = device_id_new.device_id
|where device_id_new.device_id is not null
...
...
@@ -135,7 +135,7 @@ object testt {
//老用户到美购详情页的转化
val
diary_meigou_oldUser
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(device_id) as diary_meigou_oldUser
|select '${stat_date}' as stat_date, count(d
d.d
evice_id) as diary_meigou_oldUser
|from diary_meigou_device dd left join device_id_old
|on dd.device_id = device_id_old.device_id
|where device_id_old.device_id is not null
...
...
@@ -174,7 +174,7 @@ object testt {
//新用户日记本点击
val
diary_clk_newUser
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(device_id) as diary_clk_newUser
|select '${stat_date}' as stat_date, count(d
d.d
evice_id) as diary_clk_newUser
|from diary_clk_device dd left join device_id_new
|on dd.device_id = device_id_new.device_id
|where device_id_new.device_id is not null
...
...
@@ -183,7 +183,7 @@ object testt {
//老用户日记本点击
val
diary_clk_oldUser
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(device_id) as diary_clk_oldUser
|select '${stat_date}' as stat_date, count(d
d.d
evice_id) as diary_clk_oldUser
|from diary_clk_device dd left join device_id_old
|on dd.device_id = device_id_old.device_id
|where device_id_old.device_id is not null
...
...
@@ -220,7 +220,7 @@ object testt {
//新用户日记本曝光
val
diary_exp_newUser
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(device_id) as diary_exp_newUser
|select '${stat_date}' as stat_date, count(d
d.d
evice_id) as diary_exp_newUser
|from diary_expoure_device dd left join device_id_new
|on dd.device_id = device_id_new.device_id
|where device_id_new.device_id is not null
...
...
@@ -229,7 +229,7 @@ object testt {
//老用户日记本曝光
val
diary_exp_oldUser
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(device_id) as diary_exp_oldUser
|select '${stat_date}' as stat_date, count(d
d.d
evice_id) as diary_exp_oldUser
|from diary_expoure_device dd left join device_id_old
|on dd.device_id = device_id_old.device_id
|where device_id_old.device_id is not null
...
...
@@ -266,7 +266,7 @@ object testt {
//新用户搜索次数
val
search_newUser
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(device_id) as search_newUser
|select '${stat_date}' as stat_date, count(
sd.
device_id) as search_newUser
|from search_device sd left join device_id_new
|on sd.device_id = device_id_new.device_id
|where device_id_new.device_id is not null
...
...
@@ -275,7 +275,7 @@ object testt {
//老用户日搜索次数
val
search_oldUser
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(device_id) as search_oldUser
|select '${stat_date}' as stat_date, count(
sd.
device_id) as search_oldUser
|from search_device sd left join device_id_old
|on sd.device_id = device_id_old.device_id
|where device_id_old.device_id is not null
...
...
@@ -298,7 +298,7 @@ object testt {
//新用户登录人数
val
log_newUser
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(distinct(device_id)) as log_newUser
|select '${stat_date}' as stat_date, count(distinct(
ld.
device_id)) as log_newUser
|from log_device ld left join device_id_new
|on ld.device_id = device_id_new.device_id
|where device_id_new.device_id is not null
...
...
@@ -307,7 +307,7 @@ object testt {
//老用户登录人数
val
log_oldUser
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(distinct(device_id)) as log_oldUser
|select '${stat_date}' as stat_date, count(distinct(
ld.
device_id)) as log_oldUser
|from log_device ld left join device_id_old
|on ld.device_id = device_id_old.device_id
|where device_id_old.device_id is not null
...
...
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