[fix](column) remove string64 in check_chars_length (#49537)
This commit is contained in:
@ -61,12 +61,14 @@ public:
|
||||
static constexpr size_t MAX_STRINGS_OVERFLOW_SIZE = 128;
|
||||
|
||||
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={}, "
|
||||
"you can set batch_size a number smaller than {} to avoid this error",
|
||||
total_length, element_number, element_number);
|
||||
if constexpr (std::is_same_v<T, UInt32>) {
|
||||
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={}, "
|
||||
"you can set batch_size a number smaller than {} to avoid this error",
|
||||
total_length, element_number, element_number);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user