Skip to content

Commit 6e6c598

Browse files
committed
[improvemen](overflow) Provide the user with a suggestion to avoid th… (apache#39631)
1 parent f2a37d5 commit 6e6c598

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

be/src/vec/columns/column_string.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ class ColumnStr final : public COWHelper<IColumn, ColumnStr<T>> {
6262

6363
void static check_chars_length(size_t total_length, size_t element_number) {
6464
if (UNLIKELY(total_length > MAX_STRING_SIZE)) {
65-
throw Exception(ErrorCode::STRING_OVERFLOW_IN_VEC_ENGINE,
66-
"string column length is too large: total_length={}, element_number={}",
67-
total_length, element_number);
65+
throw Exception(
66+
ErrorCode::STRING_OVERFLOW_IN_VEC_ENGINE,
67+
"string column length is too large: total_length={}, element_number={}, "
68+
"you can set batch_size a number smaller than {} to avoid this error",
69+
total_length, element_number, element_number);
6870
}
6971
}
7072

0 commit comments

Comments
 (0)