This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 4c1c67e03ae [improvemen](overflow) Provide the user with a suggestion 
to avoid th… (#39631) (#39897)
4c1c67e03ae is described below

commit 4c1c67e03ae45bbec39be2b06918f3fb8d75a1a2
Author: Yongqiang YANG <98214048+dataroar...@users.noreply.github.com>
AuthorDate: Mon Aug 26 08:10:32 2024 +0800

    [improvemen](overflow) Provide the user with a suggestion to avoid th… 
(#39631) (#39897)
    
    cherry-pick #39631 to branch-2.1
---
 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 b90cd8e2d3e..61441e3f3e6 100644
--- a/be/src/vec/columns/column_string.h
+++ b/be/src/vec/columns/column_string.h
@@ -62,9 +62,11 @@ public:
 
     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);
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to