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
cfdcc2a1
Commit
cfdcc2a1
authored
Dec 22, 2025
by
fangxingjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6dc4bcba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
dim_asin_bs_info.py
Pyspark_job/dim/dim_asin_bs_info.py
+1
-1
No files found.
Pyspark_job/dim/dim_asin_bs_info.py
View file @
cfdcc2a1
...
@@ -183,7 +183,7 @@ class DimBsAsinInfo(Templates):
...
@@ -183,7 +183,7 @@ class DimBsAsinInfo(Templates):
sql
=
f
"select asin, best_sellers_rank as asin_bs_sellers_rank, last_herf, all_best_sellers_href, date_type, date_info, created_at from ods_bs_category_asin_detail "
\
sql
=
f
"select asin, best_sellers_rank as asin_bs_sellers_rank, last_herf, all_best_sellers_href, date_type, date_info, created_at from ods_bs_category_asin_detail "
\
f
"where site_name='{self.site_name}' and date_type='week' and {params};"
f
"where site_name='{self.site_name}' and date_type='week' and {params};"
if
date_type
in
[
'month'
,
'month_week'
]
and
((
self
.
site_name
==
'us'
and
date_info
>=
'2023-10'
)
or
(
self
.
site_name
in
[
'uk'
,
'de'
]
and
self
.
date_info
>=
'2024-05'
)):
if
date_type
in
[
'month'
,
'month_week'
,
'month_aba_me'
]
and
((
self
.
site_name
==
'us'
and
date_info
>=
'2023-10'
)
or
(
self
.
site_name
in
[
'uk'
,
'de'
]
and
self
.
date_info
>=
'2024-05'
)):
sql
=
f
"select asin, best_sellers_rank as asin_bs_sellers_rank, last_herf, all_best_sellers_href, date_type, date_info, created_at from ods_bs_category_asin_detail "
\
sql
=
f
"select asin, best_sellers_rank as asin_bs_sellers_rank, last_herf, all_best_sellers_href, date_type, date_info, created_at from ods_bs_category_asin_detail "
\
f
"where site_name='{self.site_name}' and date_type='{self.date_type}' and date_info='{self.date_info}';"
f
"where site_name='{self.site_name}' and date_type='{self.date_type}' and date_info='{self.date_info}';"
print
(
f
"2. 读取ods_bs_category_asin_detail对应周期的详情表: sql -- {sql}"
)
print
(
f
"2. 读取ods_bs_category_asin_detail对应周期的详情表: sql -- {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