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
bd92c00a
Commit
bd92c00a
authored
Jun 29, 2026
by
hejiangming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://47.106.101.75/abel_cjy/Amazon-Selection-Data
into developer
parents
f99eb454
776e91a3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
img_local_path.py
Pyspark_job/img_search/img_local_path.py
+1
-1
dwd_buyer_st_pg.py
Pyspark_job/sqoop_export/dwd_buyer_st_pg.py
+2
-2
No files found.
Pyspark_job/img_search/img_local_path.py
View file @
bd92c00a
...
@@ -38,7 +38,7 @@ class AsinImageLocalPath(object):
...
@@ -38,7 +38,7 @@ class AsinImageLocalPath(object):
def
read_data
(
self
):
def
read_data
(
self
):
# sql = f"select img_unique from selection.{self.image_table} where state=1;"
# sql = f"select img_unique from selection.{self.image_table} where state=1;"
# df = pd.read_sql(sql, con=self.engine_doris)
# df = pd.read_sql(sql, con=self.engine_doris)
sql
=
f
"SELECT * from us_inv_img_info WHERE updated_at>= CURDATE() - INTERVAL 3 DAY and state =3;"
sql
=
f
"SELECT * from us_inv_img_info WHERE updated_at>= CURDATE() - INTERVAL 3 DAY and state =3
and id_segment is not null
;"
df
=
pd
.
read_sql
(
sql
,
con
=
self
.
engine_mysql
)
df
=
pd
.
read_sql
(
sql
,
con
=
self
.
engine_mysql
)
print
(
f
"sql: {sql}"
,
df
.
shape
)
print
(
f
"sql: {sql}"
,
df
.
shape
)
return
df
return
df
...
...
Pyspark_job/sqoop_export/dwd_buyer_st_pg.py
View file @
bd92c00a
...
@@ -61,14 +61,14 @@ if __name__ == '__main__':
...
@@ -61,14 +61,14 @@ if __name__ == '__main__':
if
date_type
==
'us'
:
if
date_type
==
'us'
:
sql
=
f
"""
sql
=
f
"""
create table if not exists {export_tb} (
create table if not exists {export_tb} (
like {export_master_tb} including comments
like {export_master_tb} including
defaults including
comments
);
);
delete from {export_tb} where report_date >= '{start_day}' and report_date <= '{end_day}'
delete from {export_tb} where report_date >= '{start_day}' and report_date <= '{end_day}'
"""
"""
else
:
else
:
sql
=
f
"""
sql
=
f
"""
create table if not exists {export_tb} (
create table if not exists {export_tb} (
like {export_master_tb} including comments
like {export_master_tb} including
defaults including
comments
);
);
delete from {export_tb} where report_date > '{start_day}' and report_date <= '{end_day}'
delete from {export_tb} where report_date > '{start_day}' and report_date <= '{end_day}'
"""
"""
...
...
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