[enhancement](array-type) Split Array Offsets and String Offsets (#12341)
In old Doris version string offsets are 32bit, but it is not enough for Array type. If we change string offsets from 32bit to 64bit, there will be problem if we upgrade BE one by one. Because at the same time 32bit Offsets and 64 bit Offsets String will exist at the same time. As a result, we separate the Codes for Array Offsets. Co-authored-by: cambyzju <zhuxiaoli01@baidu.com>
This commit is contained in:
@ -58,10 +58,10 @@ struct ArrayReverseImpl {
|
||||
}
|
||||
|
||||
static bool _execute_internal(const IColumn& src_column,
|
||||
const ColumnArray::Offsets& src_offsets, IColumn& dest_column,
|
||||
ColumnArray::Offsets& dest_offsets, const UInt8* src_null_map,
|
||||
const ColumnArray::Offsets64& src_offsets, IColumn& dest_column,
|
||||
ColumnArray::Offsets64& dest_offsets, const UInt8* src_null_map,
|
||||
ColumnUInt8::Container* dest_null_map) {
|
||||
ColumnArray::Offset prev_src_offset = 0;
|
||||
size_t prev_src_offset = 0;
|
||||
|
||||
for (auto curr_src_offset : src_offsets) {
|
||||
size_t array_size = curr_src_offset - prev_src_offset;
|
||||
@ -89,4 +89,4 @@ struct ArrayReverseImpl {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace doris::vectorized
|
||||
} // namespace doris::vectorized
|
||||
|
||||
Reference in New Issue
Block a user