Joe 9 miesięcy temu
rodzic
commit
fbe71a9a8e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      qiaojialiang/checkHiveDataUtil.py

+ 2 - 2
qiaojialiang/checkHiveDataUtil.py

@@ -39,7 +39,7 @@ 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(partition_spec='dt=20240703,hh=14')
+        check_res = t.exist_partition(partition_spec='dt=20240703')
         # check_res = t.exist_partition('dt=20240703')
         if check_res:
             # sql = f'select * from {project}.{table} where dt = {partition} limit 0,100'
@@ -66,4 +66,4 @@ if __name__ == '__main__':
     # partition = argv[2]
     # table = 'alg_recsys_sample_all'
     # partition = '20240703'
-    print(check_origin_hive(argv))
+    check_origin_hive(argv)