[refactor](vectorized) to_bitmap(-1) return NULL instead of return parse failed error_message (#8373)

This commit is contained in:
zhangstar333
2022-03-11 17:21:47 +08:00
committed by GitHub
parent e403dbc38c
commit e0ef9b8f6c
22 changed files with 425 additions and 170 deletions

View File

@ -462,7 +462,7 @@ struct ToBase64Impl {
auto source = reinterpret_cast<const char*>(&data[offsets[i - 1]]);
size_t srclen = offsets[i] - offsets[i - 1] - 1;
if (*source == '\0' || srclen == 0) {
if (*source == '\0' && srclen == 0) {
StringOP::push_null_string(i, dst_data, dst_offsets, null_map);
continue;
}
@ -502,7 +502,7 @@ struct FromBase64Impl {
auto source = reinterpret_cast<const char*>(&data[offsets[i - 1]]);
size_t srclen = offsets[i] - offsets[i - 1] - 1;
if (*source == '\0' || srclen == 0) {
if (*source == '\0' && srclen == 0) {
StringOP::push_null_string(i, dst_data, dst_offsets, null_map);
continue;
}