Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improvemen](overflow) Provide the user with a suggestion to avoid th… #39631

Merged
merged 3 commits into from
Aug 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions be/src/vec/columns/column_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ class ColumnStr final : public COWHelper<IColumn, ColumnStr<T>> {

void static check_chars_length(size_t total_length, size_t element_number) {
if (UNLIKELY(total_length > MAX_STRING_SIZE)) {
throw Exception(ErrorCode::STRING_OVERFLOW_IN_VEC_ENGINE,
"string column length is too large: total_length={}, element_number={}",
total_length, element_number);
throw Exception(
ErrorCode::STRING_OVERFLOW_IN_VEC_ENGINE,
"string column length is too large: total_length={}, element_number={}, "
"you can set batch_size a number smaller than {} to avoid this error",
total_length, element_number, element_number);
}
}

Expand Down
Loading