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
1fa6bca4
Commit
1fa6bca4
authored
Nov 23, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add esmm data
parent
58ad143d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
EsmmData.scala
eda/feededa/src/main/scala/com/gmei/EsmmData.scala
+23
-3
No files found.
eda/feededa/src/main/scala/com/gmei/EsmmData.scala
View file @
1fa6bca4
...
...
@@ -63,7 +63,8 @@ object EsmmData {
"""
.
stripMargin
)
imp_data
.
show
()
imp_data
.
createOrReplaceTempView
(
"imp_data"
)
println
(
"imp_data.count()"
)
println
(
imp_data
.
count
())
val
clk_data
=
sc
.
sql
(
...
...
@@ -76,7 +77,16 @@ object EsmmData {
"""
.
stripMargin
)
clk_data
.
show
()
clk_data
.
createOrReplaceTempView
(
"clk_data"
)
println
(
"clk_data.count()"
)
println
(
clk_data
.
count
())
val
imp_data_filter
=
imp_data
.
except
(
clk_data
)
imp_data_filter
.
createOrReplaceTempView
(
"imp_data_filter"
)
imp_data_filter
.
show
()
println
(
"imp_data_filter.count()"
)
println
(
imp_data_filter
.
count
())
val
stat_date_not
=
GmeiConfig
.
getMinusNDate
(
14
).
replace
(
"-"
,
""
)
...
...
@@ -93,8 +103,18 @@ object EsmmData {
|and params['referrer'] = 'diary_detail'
"""
.
stripMargin
)
cvr_data
.
show
()
cvr_data
.
createOrReplaceTempView
(
"cvr_data"
)
cvr_data
.
show
()
println
(
"cvr_data.count()"
)
println
(
cvr_data
.
count
())
val
clk_data_filter
=
clk_data
.
except
(
cvr_data
)
clk_data_filter
.
createOrReplaceTempView
(
"clk_data_filter"
)
clk_data_filter
.
show
()
println
(
"clk_data_filter.count()"
)
println
(
clk_data_filter
.
count
())
...
...
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