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
dac32101
Commit
dac32101
authored
Jan 21, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计搜索ctr,修复bug
parent
f7bbb62a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
temp_count.scala
eda/feededa/src/main/scala/com/gmei/temp_count.scala
+3
-2
No files found.
eda/feededa/src/main/scala/com/gmei/temp_count.scala
View file @
dac32101
...
...
@@ -13,8 +13,6 @@ import com.github.nscala_time.time.Imports._
import
java.text.SimpleDateFormat
import
java.util.Date
import
com.sun.tools.internal.jxc.SchemaGenerator.Runner
import
scala.util.parsing.json.JSON
object
temp_count
{
...
...
@@ -477,6 +475,9 @@ object GetHiveSearchData {
def
GetSearchResultData
(
spark
:
SparkSession
,
strExposureAction
:
String
,
strClickAction
:
String
)
=
{
val
stat_date
=
"2019-01-16"
val
partition_date
=
stat_date
.
replace
(
"-"
,
""
)
val
exposureAccum
=
spark
.
sparkContext
.
longAccumulator
(
"search exposure data"
)
val
exposureSql
=
spark
.
sql
(
s
"""
...
...
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