yiguolei commented on code in PR #62835:
URL: https://github.com/apache/doris/pull/62835#discussion_r3142880581


##########
be/src/format/csv/csv_reader.cpp:
##########
@@ -377,26 +380,29 @@ Status CsvReader::_do_init_reader(ReaderInitContext* 
base_ctx) {
     return Status::OK();
 }
 
+void CsvReader::set_batch_size(size_t batch_size) {
+    // 0 means "not set" / "use default" for the row-based readers; we must
+    // never let _batch_size be 0 because _do_get_next_block uses it as the
+    // upper bound of a `while (rows < _batch_size)` loop and a 0 would make
+    // the reader return empty blocks and incorrectly signal EOF.
+    _batch_size = std::max(_MIN_BATCH_SIZE, batch_size);

Review Comment:
   我感觉这个min batch size 是错的。 如果我们保留它,感觉没有办法做到控制bytes了。 所以要不我们先删掉吧



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to