[refactor](remove string val) remove string val structure, it is same with string ref (#17461)
remove stringval, decimalv2val, bigintval
This commit is contained in:
@ -328,14 +328,14 @@ struct TrimImpl {
|
||||
for (size_t i = 0; i < offset_size; ++i) {
|
||||
const char* raw_str = reinterpret_cast<const char*>(&data[offsets[i - 1]]);
|
||||
ColumnString::Offset size = offsets[i] - offsets[i - 1];
|
||||
StringVal str(raw_str, size);
|
||||
StringRef str(raw_str, size);
|
||||
if constexpr (is_ltrim) {
|
||||
str = simd::VStringFunctions::ltrim(str);
|
||||
}
|
||||
if constexpr (is_rtrim) {
|
||||
str = simd::VStringFunctions::rtrim(str);
|
||||
}
|
||||
StringOP::push_value_string(std::string_view((char*)str.ptr, str.len), i, res_data,
|
||||
StringOP::push_value_string(std::string_view((char*)str.data, str.size), i, res_data,
|
||||
res_offsets);
|
||||
}
|
||||
return Status::OK();
|
||||
|
||||
Reference in New Issue
Block a user