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
e6da24dd
Commit
e6da24dd
authored
Aug 17, 2026
by
chenyuanjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
年度流量选品-月销默认值填充
parent
f154543e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
dwt_flow_asin_year.py
Pyspark_job/dwt/dwt_flow_asin_year.py
+12
-12
No files found.
Pyspark_job/dwt/dwt_flow_asin_year.py
View file @
e6da24dd
...
...
@@ -302,18 +302,18 @@ class DwtFlowAsinYear(object):
)
.
select
(
F
.
col
(
'asin'
),
F
.
col
(
'bought_month_total'
),
F
.
co
l
(
'bought_month_1'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_2'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_3'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_4'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_5'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_6'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_7'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_8'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_9'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_10'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_11'
)
.
cast
(
IntegerType
()
),
F
.
co
l
(
'bought_month_12'
)
.
cast
(
IntegerType
()
),
F
.
co
alesce
(
F
.
col
(
'bought_month_1'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_1'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_2'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_2'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_3'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_3'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_4'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_4'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_5'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_5'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_6'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_6'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_7'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_7'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_8'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_8'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_9'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_9'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_10'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_10'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_11'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_11'
),
F
.
co
alesce
(
F
.
col
(
'bought_month_12'
),
F
.
lit
(
0
))
.
cast
(
IntegerType
())
.
alias
(
'bought_month_12'
),
F
.
col
(
'bought_month_q1'
)
.
cast
(
IntegerType
()),
F
.
col
(
'bought_month_q2'
)
.
cast
(
IntegerType
()),
F
.
col
(
'bought_month_q3'
)
.
cast
(
IntegerType
()),
...
...
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