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
ea191376
Commit
ea191376
authored
Jun 15, 2026
by
chenyuanjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e37ab9a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dim_asin_launchtime_info.py
Pyspark_job/dim/dim_asin_launchtime_info.py
+4
-4
No files found.
Pyspark_job/dim/dim_asin_launchtime_info.py
View file @
ea191376
...
...
@@ -82,7 +82,7 @@ class DimAsinLaunchtimeInfo(object):
sql
=
f
"""
select asin,
crawl_asin_launch_time,
'
9999-12-31 23:59:59
' as updated_time,
'
1970-01-01 00:00:00
' as updated_time,
appear_period_label as period_label
from dim_asin_launchtime_info
where site_name='{self.site_name}'
...
...
@@ -148,9 +148,9 @@ class DimAsinLaunchtimeInfo(object):
df_save
=
df_result
.
select
(
F
.
col
(
'asin'
),
F
.
date_format
(
F
.
to_date
(
F
.
coalesce
(
F
.
col
(
'crawl_asin_launch_time'
),
F
.
col
(
'keepa_asin_launch_time'
))),
'yyyy-MM-dd
'
)
.
alias
(
'asin_launch_time'
),
F
.
date_format
(
F
.
to_date
(
F
.
col
(
'crawl_asin_launch_time'
)),
'yyyy-MM-dd
'
)
.
alias
(
'crawl_asin_launch_time'
),
F
.
date_format
(
F
.
to_date
(
F
.
col
(
'keepa_asin_launch_time'
)),
'yyyy-MM-dd
'
)
.
alias
(
'keepa_asin_launch_time'
),
F
.
to_date
(
F
.
coalesce
(
F
.
col
(
'crawl_asin_launch_time'
),
F
.
col
(
'keepa_asin_launch_time'
)))
.
cast
(
'string
'
)
.
alias
(
'asin_launch_time'
),
F
.
to_date
(
F
.
col
(
'crawl_asin_launch_time'
))
.
cast
(
'string
'
)
.
alias
(
'crawl_asin_launch_time'
),
F
.
to_date
(
F
.
col
(
'keepa_asin_launch_time'
))
.
cast
(
'string
'
)
.
alias
(
'keepa_asin_launch_time'
),
F
.
col
(
'period_label'
)
.
alias
(
'appear_period_label'
),
F
.
when
(
F
.
col
(
'keepa_crawl_flag'
)
==
1
,
F
.
lit
(
1
))
.
otherwise
(
F
.
lit
(
0
))
.
alias
(
'keepa_crawl_flag'
),
F
.
lit
(
self
.
site_name
)
.
alias
(
'site_name'
)
...
...
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