Joe 10 місяців тому
батько
коміт
8ee1fd5cd3
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      qiaojialiang/checkHiveDataUtil.py

+ 2 - 1
qiaojialiang/checkHiveDataUtil.py

@@ -39,7 +39,8 @@ def check_data(project, table, partition) -> int:
     try:
         t = odps.get_table(name=table)
         # check_res = t.exist_partition(partition_spec=f'dt={partition}')
-        check_res = t.exist_partition('dt=20240703')
+        check_res = t.exist_partition(partition=f'dt=20240703')
+        # check_res = t.exist_partition('dt=20240703')
         if check_res:
             # sql = f'select * from {project}.{table} where dt = {partition} limit 0,100'
             sql = f'select * from loghubods.alg_recsys_sample_all where dt = 20240703 limit 0,100;'