Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Amazon-Selection-Data
Overview
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
abel_cjy
Amazon-Selection-Data
Commits
f43bbe07
Commit
f43bbe07
authored
May 06, 2026
by
hejiangming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周趋势图 增加索引
parent
e886e158
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
dim_st_detail_week.py
Pyspark_job/sqoop_export/dim_st_detail_week.py
+1
-0
No files found.
Pyspark_job/sqoop_export/dim_st_detail_week.py
View file @
f43bbe07
...
...
@@ -164,6 +164,7 @@ if __name__ == '__main__':
trend_sql
=
f
"""
create table if not exists {trend_export_tb} partition of {trend_master_tb} for values from ('{year_str}') to ('{trend_year_next}');
create index if not exists {trend_export_tb}_st_key_idx on {trend_export_tb} using btree (st_key);
delete from {trend_export_tb} where date_info = '{date_info}';
"""
DBUtil
.
engine_exec_sql
(
engine
,
trend_sql
)
...
...
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