Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppTag
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
dataplatform
AppTag
Commits
a595d449
Commit
a595d449
authored
Aug 06, 2019
by
jinfeng.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5e84c730
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mysql2hive.sh
azkaban/mysql2hive.sh
+3
-2
No files found.
azkaban/mysql2hive.sh
View file @
a595d449
...
@@ -23,8 +23,9 @@ sql="INSERT OVERWRITE DIRECTORY '${base_dir}/${date_path}'
...
@@ -23,8 +23,9 @@ sql="INSERT OVERWRITE DIRECTORY '${base_dir}/${date_path}'
LATERAL VIEW EXPLODE(SPLIT(REGEXP_REPLACE(REGEXP_REPLACE(SUBSTRING(category,2,LENGTH(category) - 2),'
\"
',''),' ',''),',')) featTable AS feat_id) a
LATERAL VIEW EXPLODE(SPLIT(REGEXP_REPLACE(REGEXP_REPLACE(SUBSTRING(category,2,LENGTH(category) - 2),'
\"
',''),' ',''),',')) featTable AS feat_id) a
INNER JOIN dwh.dm_old2new_tag b ON a.feat_id = b.new_second_id
INNER JOIN dwh.dm_old2new_tag b ON a.feat_id = b.new_second_id
UNION ALL
UNION ALL
SELECT package_name,platform,tag_type,first_tag,second_tag,comment
SELECT c.package_name,c.platform,c.tag_type,c.first_tag,c.second_tag,c,comment
FROM dwh.dim_package_tags
FROM dwh.dim_package_tags c LEFT JOIN dev.app_tag d ON LOWER(c.package_name) = LOWER(d.package_name)
WHERE d.package_name IS NULL
) package_tags
) package_tags
"
"
...
...
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