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


##########
be/src/format/csv/csv_reader.cpp:
##########
@@ -433,8 +438,17 @@ Status CsvReader::_do_get_next_block(Block* block, size_t* 
read_rows, bool* eof)
         block->set_columns(std::move(mutate_columns));
     } else {
         auto columns = block->mutate_columns();
-        while (rows < batch_size && !_line_reader_eof &&
-               (max_block_bytes <= 0 || (int64_t)block_bytes < 
max_block_bytes)) {
+        size_t next_checking_rows = 1;
+        auto get_block_bytes = [&]() {
+            if (_is_load) {
+                return block->bytes();

Review Comment:
   为什么load 和 其他的计算方式不一样?



-- 
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