zhangbo 1 년 전
부모
커밋
da1209c917
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      alg_recsys_recall_1h_region.py

+ 1 - 1
alg_recsys_recall_1h_region.py

@@ -110,7 +110,7 @@ def h_data_check(project, table, now_date):
         dt = "2024022319all0last0"
         check_res = check_table_partition_exits(date=dt, project=project, table=table)
         if check_res:
-            sql = f'select * from {project}.{table} where dt = {dt}'
+            sql = f'select * from {project}.{table} where dt = "{dt}"'
             print("zhangbo-sql-是否有数据")
             print(sql)
             with odps.execute_sql(sql=sql).open_reader() as reader: