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

liaoxin 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 f2b93d58964 [Fix](load) Restrict the import of VARCHAR(0) data to 
avoid coredump #40940 (#40974)
f2b93d58964 is described below

commit f2b93d58964e64523f7366a03ea07dee5f0279d9
Author: Xin Liao <liaoxin...@126.com>
AuthorDate: Thu Sep 19 17:40:46 2024 +0800

    [Fix](load) Restrict the import of VARCHAR(0) data to avoid coredump #40940 
(#40974)
    
    cherry pick from #40940
---
 be/src/vec/sink/vtablet_block_convertor.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/sink/vtablet_block_convertor.cpp 
b/be/src/vec/sink/vtablet_block_convertor.cpp
index 086c9a3ddd0..57ec77a38e2 100644
--- a/be/src/vec/sink/vtablet_block_convertor.cpp
+++ b/be/src/vec/sink/vtablet_block_convertor.cpp
@@ -218,7 +218,7 @@ Status OlapTableBlockConvertor::_internal_validate_column(
 
         size_t limit = config::string_type_length_soft_limit_bytes;
         // when type.len is negative, std::min will return overflow value, so 
we need to check it
-        if (type.len > 0) {
+        if (type.len >= 0) {
             limit = std::min(config::string_type_length_soft_limit_bytes, 
type.len);
         }
 


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

Reply via email to