浏览代码

feat: 移除拉数据limit

许家凯 2 年之前
父节点
当前提交
209b77ecff
共有 1 个文件被更改,包括 1 次插入2 次删除
  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(