Skip to content

Commit

Permalink
[Fix](load) Fix the incorrect src value printed in the error log when…
Browse files Browse the repository at this point in the history
… strict mode is true
  • Loading branch information
liaoxin01 committed Aug 15, 2024
1 parent 5b7278f commit 00d2004
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions be/src/vec/exec/scan/vfile_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 00d2004

Please sign in to comment.