Ver código fonte

增加写入title tag的任务

zhangbo 11 meses atrás
pai
commit
a2ff68308f

+ 1 - 1
zhangbo/alg_recsys_recall_01_vid2titletags_redis.py

@@ -79,7 +79,7 @@ def check_data(project, table,  date, hour) -> int:
     try:
         t = odps.get_table(name=table)
         log_.info(f"检查分区是否存在-【 dt={date} hh={hour}】")
-        check_res = t.exist_partition(partition_spec=f'dt={date}/hh={hour}')
+        check_res = t.exist_partition(partition_spec=f'dt={date},hh={hour}')
         if check_res:
             sql = f'select * from {project}.{table} where dt = {date} and hh = {hour}'
             log_.info(sql)