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

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 8e6725b2b07bedbc2551274112e455094dc09fcb
Author: Kaijie Chen <[email protected]>
AuthorDate: Fri Jul 21 18:30:01 2023 +0800

    [fix](log) column index off-by-one error in scanner logs (#19747)
---
 be/src/vec/exec/scan/vfile_scanner.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/be/src/vec/exec/scan/vfile_scanner.cpp 
b/be/src/vec/exec/scan/vfile_scanner.cpp
index 38574262de..eed73e98cb 100644
--- a/be/src/vec/exec/scan/vfile_scanner.cpp
+++ b/be/src/vec/exec/scan/vfile_scanner.cpp
@@ -474,7 +474,7 @@ Status VFileScanner::_convert_to_output_block(Block* block) 
{
         if (!slot_desc->is_materialized()) {
             continue;
         }
-        int dest_index = ctx_idx++;
+        int dest_index = ctx_idx;
         vectorized::ColumnPtr column_ptr;
 
         auto& ctx = _dest_vexpr_ctx[dest_index];
@@ -542,6 +542,7 @@ Status VFileScanner::_convert_to_output_block(Block* block) 
{
         block->insert(dest_index, 
vectorized::ColumnWithTypeAndName(std::move(column_ptr),
                                                                     
slot_desc->get_data_type_ptr(),
                                                                     
slot_desc->col_name()));
+        ctx_idx++;
     }
 
     // after do the dest block insert operation, clear _src_block to remove 
the reference of origin column


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

Reply via email to