Skip to content

Commit

Permalink
[Enhancement] Optimize error message in csv scanner (StarRocks#49713)
Browse files Browse the repository at this point in the history
Signed-off-by: xiangguangyxg <xiangguangyxg@gmail.com>
  • Loading branch information
xiangguangyxg authored Aug 19, 2024
1 parent 3bad4e5 commit 92748b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/exec/csv_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ static std::string make_value_type_not_matched_error_message(int field_pos, cons
const SlotDescriptor* slot) {
std::stringstream error_msg;
error_msg << "The field (name = " << slot->col_name() << ", pos = " << field_pos << ") is out of range. "
<< "Type: " << slot->type().debug_string() << ", Value: " << field.to_string();
<< "Type: " << slot->type().debug_string() << ", Value length: " << field.get_size()
<< ", Value: " << field.to_string();
return error_msg.str();
}

Expand Down

0 comments on commit 92748b8

Please sign in to comment.