From 6e6c5984abbde1612eb4e9127f995889d013593d Mon Sep 17 00:00:00 2001 From: Yongqiang YANG <98214048+dataroaring@users.noreply.github.com> Date: Sun, 25 Aug 2024 21:55:30 +0800 Subject: [PATCH] =?UTF-8?q?[improvemen](overflow)=20Provide=20the=20user?= =?UTF-8?q?=20with=20a=20suggestion=20to=20avoid=20th=E2=80=A6=20(#39631)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- be/src/vec/columns/column_string.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/be/src/vec/columns/column_string.h b/be/src/vec/columns/column_string.h index b90cd8e2d3e30c..61441e3f3e6af7 100644 --- a/be/src/vec/columns/column_string.h +++ b/be/src/vec/columns/column_string.h @@ -62,9 +62,11 @@ class ColumnStr final : public COWHelper> { 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); } }