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
ceaacdf8
Commit
ceaacdf8
authored
Feb 11, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据on_click_diary_card计算ctr
parent
fc38dc9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
testt.scala
eda/feededa/src/main/scala/com/gmei/testt.scala
+3
-3
No files found.
eda/feededa/src/main/scala/com/gmei/testt.scala
View file @
ceaacdf8
...
...
@@ -547,7 +547,7 @@ object diary_clk_card {
val
clk_count_oldUser_all_a
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_oldUser_
Contrast
_a
|select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_oldUser_
all
_a
|from online.tl_hdfs_maidian_view ot inner join device_id_old
|on ot.cl_id = device_id_old.device_id
|where ot.action='on_click_diary_card'
...
...
@@ -643,7 +643,7 @@ object diary_clk_card {
val
clk_count_newUser_all_a
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_
oldUser_Contrast
_a
|select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_
newUser_all
_a
|from online.tl_hdfs_maidian_view ot inner join device_id_new
|on ot.cl_id = device_id_new.device_id
|where ot.action='on_click_diary_card'
...
...
@@ -655,7 +655,7 @@ object diary_clk_card {
val
clk_count_newUser_all_b
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_
oldUser_Contrast
_b
|select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_
newUser_all
_b
|from online.tl_hdfs_maidian_view ot inner join device_id_new
|on ot.cl_id = device_id_new.device_id
|where ot.action='full_stack_click_video_card_full_screen_play'
...
...
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