Commit 776e91a3 by fangxingjun

no message

parent 9c42c61b
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment