Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mobvista-dmp
Project
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王金锋
mobvista-dmp
Commits
19ae7d93
Commit
19ae7d93
authored
Sep 24, 2021
by
WangJinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix craw package tag bug
parent
5d330dc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
CrawPkgsSpark.scala
.../scala/mobvista/dmp/datasource/apptag/CrawPkgsSpark.scala
+3
-1
No files found.
src/main/scala/mobvista/dmp/datasource/apptag/CrawPkgsSpark.scala
View file @
19ae7d93
...
...
@@ -32,6 +32,7 @@ class CrawPkgsSpark extends CommonSparkJob with Serializable {
val
pkginstallpath
=
commandLine
.
getOptionValue
(
"pkginstallpath"
)
val
coalesce
=
commandLine
.
getOptionValue
(
"coalesce"
)
val
yesday
=
commandLine
.
getOptionValue
(
"yesday"
)
val
update_date
=
MobvistaConstant
.
sdf1
.
format
(
MobvistaConstant
.
sdf2
.
parse
(
yesday
))
val
spark
=
SparkSession
.
builder
()
.
appName
(
"CrawPkgsSpark"
)
...
...
@@ -75,7 +76,8 @@ class CrawPkgsSpark extends CommonSparkJob with Serializable {
|SELECT b.package_name, getPlatform(b.package_name) platform
| FROM
| (SELECT package_name, COUNT(1) counts
| FROM dwh.dmp_install_list LATERAL VIEW explode(getPkgs(install_list)) dmp_table AS package_name WHERE dt = '$yesday' AND business = '14days'
| FROM dwh.dmp_install_list LATERAL VIEW explode(getPkgs(install_list)) dmp_table AS package_name WHERE dt = '$yesday'
| AND update_date = '$update_date' AND business = '14days'
| GROUP BY package_name
| ) b
| LEFT JOIN
...
...
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