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
fb4acfb6
Commit
fb4acfb6
authored
Aug 21, 2026
by
chenyuanjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
年度流量选品-只展示最新月出现的asin的月销
parent
f853f1af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dwt_flow_asin_month.py
Pyspark_job/doris_handle/dwt_flow_asin_month.py
+4
-2
No files found.
Pyspark_job/doris_handle/dwt_flow_asin_month.py
View file @
fb4acfb6
...
@@ -1197,7 +1197,8 @@ SELECT
...
@@ -1197,7 +1197,8 @@ SELECT
f.one_star, f.two_star, f.three_star, f.four_star, f.five_star, f.low_star,
f.one_star, f.two_star, f.three_star, f.four_star, f.five_star, f.low_star,
f.bsr_orders,
f.bsr_orders,
f.bsr_orders_sale,
f.bsr_orders_sale,
f.asin_bought_month,
-- asin本月快照没跟上最新月(latest_date_info != 本次跑批月份)时,月销/环比/同比置空
CASE WHEN DATE_FORMAT(f.date_info, '
%
Y-
%
m') = '{latest_date_info}' THEN f.asin_bought_month ELSE NULL END AS asin_bought_month,
f.ao_val,
f.ao_val,
f.zr_counts,
f.zr_counts,
f.sp_counts, f.sb_counts, f.vi_counts, f.bs_counts,
f.sp_counts, f.sb_counts, f.vi_counts, f.bs_counts,
...
@@ -1258,7 +1259,8 @@ SELECT
...
@@ -1258,7 +1259,8 @@ SELECT
f.bsr_orders_rise, f.bsr_orders_mom AS bsr_orders_change, f.bsr_orders_yoy,
f.bsr_orders_rise, f.bsr_orders_mom AS bsr_orders_change, f.bsr_orders_yoy,
f.sales_rise, f.sales_mom AS sales_change, f.sales_yoy,
f.sales_rise, f.sales_mom AS sales_change, f.sales_yoy,
f.variation_rise, f.variation_mom AS variation_change, f.variation_yoy,
f.variation_rise, f.variation_mom AS variation_change, f.variation_yoy,
f.bought_month_mom, f.bought_month_yoy,
CASE WHEN DATE_FORMAT(f.date_info, '
%
Y-
%
m') = '{latest_date_info}' THEN f.bought_month_mom ELSE NULL END AS bought_month_mom,
CASE WHEN DATE_FORMAT(f.date_info, '
%
Y-
%
m') = '{latest_date_info}' THEN f.bought_month_yoy ELSE NULL END AS bought_month_yoy,
pr.ocean_profit, pr.air_profit,
pr.ocean_profit, pr.air_profit,
FROM_UNIXTIME((CAST(kp.tracking_since AS BIGINT) + 21564000) * 60) AS tracking_since,
FROM_UNIXTIME((CAST(kp.tracking_since AS BIGINT) + 21564000) * 60) AS tracking_since,
CASE
CASE
...
...
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