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
62841705
Commit
62841705
authored
Nov 01, 2018
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change sql
parent
a3b5b964
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
testt.scala
eda/feededa/src/main/scala/com/gmei/testt.scala
+5
-6
No files found.
eda/feededa/src/main/scala/com/gmei/testt.scala
View file @
62841705
...
@@ -54,12 +54,11 @@ object testt {
...
@@ -54,12 +54,11 @@ object testt {
val
get_data_dura
=
sc
.
sql
(
val
get_data_dura
=
sc
.
sql
(
s
"""
s
"""
|select count(cid_id) as get_clk_count_newUser
|select count(cid_id) as get_clk_count_newUser
|from data_feed_click jd inner join device_id_newUser
|from data_feed_click
|on jd.device_id = device_id_newUser.decive_id
|where (cid_type = 'diary' or cid_type = 'diary_video')
|where (jd.cid_type = 'diary' or jd.cid_type = 'diary_video')
|and device_id regexp'${strategy}'
|and jd.device_id regexp'${strategy}'
|and device_id not in (select device_id from bl_device_list)
|and jd.device_id not in (select device_id from bl_device_list)
|and device_id not in (select device_id from blacklist)
|and jd.device_id not in (select device_id from blacklist)
"""
.
stripMargin
"""
.
stripMargin
)
)
get_data_dura
.
show
()
get_data_dura
.
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