Skip to content

Commit f2b93d5

Browse files
authored
[Fix](load) Restrict the import of VARCHAR(0) data to avoid coredump #40940 (#40974)
cherry pick from #40940
1 parent 8302261 commit f2b93d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

be/src/vec/sink/vtablet_block_convertor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Status OlapTableBlockConvertor::_internal_validate_column(
218218

219219
size_t limit = config::string_type_length_soft_limit_bytes;
220220
// when type.len is negative, std::min will return overflow value, so we need to check it
221-
if (type.len > 0) {
221+
if (type.len >= 0) {
222222
limit = std::min(config::string_type_length_soft_limit_bytes, type.len);
223223
}
224224

0 commit comments

Comments
 (0)