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
5655a77a
Commit
5655a77a
authored
May 19, 2026
by
chenyuanjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6d70e970
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
export_keepa_asin_del.py
Pyspark_job/script/export_keepa_asin_del.py
+2
-1
No files found.
Pyspark_job/script/export_keepa_asin_del.py
View file @
5655a77a
...
...
@@ -29,7 +29,8 @@ if __name__ == '__main__':
WHERE site_name = '{site_name}'
"""
print
(
f
"sql=
\n
{sql}"
)
df_all
=
spark
.
sql
(
sqlQuery
=
sql
)
df_all
=
spark
.
sql
(
sqlQuery
=
sql
)
.
cache
()
print
(
f
"全量读取 keepa 数据:{df_all.count()}"
)
# 2. Spark 端过滤超过 3 个月的 asin(数据读取后处理,不在 Hive SQL 中算)
three_months_ago
=
(
datetime
.
now
()
-
relativedelta
(
months
=
3
))
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
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