소스 검색

增加写入title tag的任务

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

+ 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)