This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
     new 5d16747697 [cherry-pick](json_reader) Do not increase the value of 
read_rows for empty line #18611
5d16747697 is described below

commit 5d167476979a5268c844c8b6e7635ffaaac953bf
Author: yiguolei <[email protected]>
AuthorDate: Thu Apr 13 10:29:45 2023 +0800

    [cherry-pick](json_reader) Do not increase the value of read_rows for empty 
line #18611
---
 be/src/vec/exec/format/json/new_json_reader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/exec/format/json/new_json_reader.cpp 
b/be/src/vec/exec/format/json/new_json_reader.cpp
index 2441f5fb74..ff0d410757 100644
--- a/be/src/vec/exec/format/json/new_json_reader.cpp
+++ b/be/src/vec/exec/format/json/new_json_reader.cpp
@@ -121,11 +121,11 @@ Status NewJsonReader::get_next_block(Block* block, 
size_t* read_rows, bool* eof)
         bool is_empty_row = false;
 
         RETURN_IF_ERROR(_read_json_column(columns, _file_slot_descs, 
&is_empty_row, &_reader_eof));
-        ++(*read_rows);
         if (is_empty_row) {
             // Read empty row, just continue
             continue;
         }
+        ++(*read_rows);
     }
 
     columns.clear();


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

Reply via email to