Joe há 9 meses atrás
pai
commit
9af917dea0
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      qiaojialiang/checkHiveDataUtil.py

+ 2 - 1
qiaojialiang/checkHiveDataUtil.py

@@ -40,7 +40,8 @@ def check_data(project, table, partition) -> int:
         t = odps.get_table(name=table)
         check_res = t.exist_partition(partition_spec=f'dt={partition}')
         if check_res:
-            sql = f'select * from {project}.{table} where dt = {partition} limit 0,100'
+            # 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;'
             with odps.execute_sql(sql=sql).open_reader() as reader:
                 data_count = reader.count
         else: