This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit 84de8013221fc4210f079ee6c9ef7ee90e2f10ec Author: Kaijie Chen <c...@apache.org> 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 23915c5c3f..78d291f358 100644 --- a/be/src/vec/exec/scan/vfile_scanner.cpp +++ b/be/src/vec/exec/scan/vfile_scanner.cpp @@ -374,7 +374,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; auto* ctx = _dest_vexpr_ctx[dest_index]; int result_column_id = -1; @@ -442,6 +442,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: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org