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
0861dd1a
Commit
0861dd1a
authored
Apr 18, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.wanmeizhensuo.com:ML/ffm-baseline
修改测试文件
parents
4902e9e0
7cac8d2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
temp_analysis.scala
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
+4
-4
No files found.
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
View file @
0861dd1a
...
...
@@ -638,8 +638,8 @@ object alpha_ctr {
val
device_num_count
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date,count(DISTINCT(device_id))
|from ML_ALPHA_C_CT_DV_DEVICE_DIMEN_D
|select '${stat_date}' as stat_date,count(DISTINCT(device_id))
as device_num
|from
ml.
ML_ALPHA_C_CT_DV_DEVICE_DIMEN_D
|where partition_day='${partition_date}'
|and is_today_active="1"
"""
.
stripMargin
...
...
@@ -648,8 +648,8 @@ object alpha_ctr {
val
duration_device
=
sc
.
sql
(
s
"""
|select '${stat_date}' as stat_date,sum(user_duration)/count(DISTINCT(device_id))
|from ML_ALPHA_C_CT_DV_DEVICE_INDIC_INC_D
|select '${stat_date}' as stat_date,sum(user_duration)/count(DISTINCT(device_id))
as device_duration
|from
ml.
ML_ALPHA_C_CT_DV_DEVICE_INDIC_INC_D
|WHERE partition_day='${partition_date}'
|and open_times!="0"
"""
.
stripMargin
...
...
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