From 00d200451387ba4cafefccdf686e1fbb1a7e085b Mon Sep 17 00:00:00 2001 From: liaoxin Date: Thu, 15 Aug 2024 13:34:00 +0000 Subject: [PATCH] [Fix](load) Fix the incorrect src value printed in the error log when strict mode is true --- be/src/vec/exec/scan/vfile_scanner.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/be/src/vec/exec/scan/vfile_scanner.cpp b/be/src/vec/exec/scan/vfile_scanner.cpp index aa7835d6e258f4..c3ab8206527929 100644 --- a/be/src/vec/exec/scan/vfile_scanner.cpp +++ b/be/src/vec/exec/scan/vfile_scanner.cpp @@ -581,8 +581,11 @@ Status VFileScanner::_convert_to_output_block(Block* block) { _num_of_columns_from_file); }, [&]() -> std::string { - auto raw_value = _src_block_ptr->get_by_position(ctx_idx) - .column->get_data_at(i); + auto raw_value = + _src_block_ptr + ->get_by_position(_dest_slot_to_src_slot_index + [dest_index]) + .column->get_data_at(i); std::string raw_string = raw_value.to_string(); fmt::memory_buffer error_msg; fmt::format_to(error_msg,