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
75ae57fd
Commit
75ae57fd
authored
May 10, 2026
by
chenyuanjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a4290282
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dim_asin_profit_rate_info.py
Pyspark_job/dim/dim_asin_profit_rate_info.py
+1
-1
DorisHelper.py
Pyspark_job/utils/DorisHelper.py
+1
-1
No files found.
Pyspark_job/dim/dim_asin_profit_rate_info.py
View file @
75ae57fd
...
@@ -37,7 +37,7 @@ class DimAsinProfitRateInfo(object):
...
@@ -37,7 +37,7 @@ class DimAsinProfitRateInfo(object):
# 读取keepa数据
# 读取keepa数据
sql
=
f
"""
sql
=
f
"""
select asin, package_length, package_width, package_height, weight
select asin, package_length, package_width, package_height,
item_weight as
weight
from dim_keepa_asin_info where site_name = '{self.site_name}';
from dim_keepa_asin_info where site_name = '{self.site_name}';
"""
"""
self
.
df_keepa_asin
=
self
.
spark
.
sql
(
sqlQuery
=
sql
)
.
repartition
(
40
,
'asin'
)
self
.
df_keepa_asin
=
self
.
spark
.
sql
(
sqlQuery
=
sql
)
.
repartition
(
40
,
'asin'
)
...
...
Pyspark_job/utils/DorisHelper.py
View file @
75ae57fd
...
@@ -179,7 +179,7 @@ class DorisHelper(object):
...
@@ -179,7 +179,7 @@ class DorisHelper(object):
.
option
(
"user"
,
connection_info
[
'user'
])
\
.
option
(
"user"
,
connection_info
[
'user'
])
\
.
option
(
"password"
,
connection_info
[
'pwd'
])
\
.
option
(
"password"
,
connection_info
[
'pwd'
])
\
.
option
(
"doris.write.fields"
,
f
"{table_columns}"
)
\
.
option
(
"doris.write.fields"
,
f
"{table_columns}"
)
\
.
optin
(
"doris.sink.properties.type"
,
"DELETE"
)
\
.
opti
o
n
(
"doris.sink.properties.type"
,
"DELETE"
)
\
.
option
(
"doris.sink.properties.sequence_col"
,
f
"{update_field}"
)
\
.
option
(
"doris.sink.properties.sequence_col"
,
f
"{update_field}"
)
\
.
option
(
"doris.sink.batch.interval.ms"
,
"30000"
)
\
.
option
(
"doris.sink.batch.interval.ms"
,
"30000"
)
\
.
option
(
"doris.sink.properties.format"
,
"json"
)
\
.
option
(
"doris.sink.properties.format"
,
"json"
)
\
...
...
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