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
7cac8d2d
Commit
7cac8d2d
authored
Apr 18, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重新统计alpha
parent
361846fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
temp_analysis.scala
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
+2
-2
No files found.
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
View file @
7cac8d2d
...
@@ -638,7 +638,7 @@ object alpha_ctr {
...
@@ -638,7 +638,7 @@ object alpha_ctr {
val
device_num_count
=
sc
.
sql
(
val
device_num_count
=
sc
.
sql
(
s
"""
s
"""
|select '${stat_date}' as stat_date,count(DISTINCT(device_id))
|select '${stat_date}' as stat_date,count(DISTINCT(device_id))
as device_num
|from ml.ML_ALPHA_C_CT_DV_DEVICE_DIMEN_D
|from ml.ML_ALPHA_C_CT_DV_DEVICE_DIMEN_D
|where partition_day='${partition_date}'
|where partition_day='${partition_date}'
|and is_today_active="1"
|and is_today_active="1"
...
@@ -648,7 +648,7 @@ object alpha_ctr {
...
@@ -648,7 +648,7 @@ object alpha_ctr {
val
duration_device
=
sc
.
sql
(
val
duration_device
=
sc
.
sql
(
s
"""
s
"""
|select '${stat_date}' as stat_date,sum(user_duration)/count(DISTINCT(device_id))
|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
|from ml.ML_ALPHA_C_CT_DV_DEVICE_INDIC_INC_D
|WHERE partition_day='${partition_date}'
|WHERE partition_day='${partition_date}'
|and open_times!="0"
|and open_times!="0"
...
...
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