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: