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