Browse Source

feat: 移除拉数据limit

许家凯 2 năm trước cách đây
mục cha
commit
209b77ecff
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      handle/pull_sample_data.py

+ 1 - 2
handle/pull_sample_data.py

@@ -133,8 +133,7 @@ def pull_by_max(size=100000):
     log.info("开始推送数据...")
 
     with odps_sdk.execute_sql(
-            'select * from out_winhc_data_analysis_pull_data where ds = ' + latest_ds + ' limit ' + str(
-                size)).open_reader(
+            'select * from out_winhc_data_analysis_pull_data where ds = ' + latest_ds + ' ').open_reader(
         tunnel=True) as reader:
         for record in reader:
             c = get_value(