yiguolei commented on code in PR #51253:
URL: https://github.com/apache/doris/pull/51253#discussion_r2107011196
##########
be/src/vec/common/pod_array.h:
##########
@@ -460,6 +460,8 @@ class PODArray : public PODArrayBase<sizeof(T),
initial_bytes, TAllocator, pad_r
this->c_end = this->c_start + new_size;
}
+ /// reset the array capacity
+ /// fill the new additional elements using the value
void resize_fill(size_t n, const T& value) {
Review Comment:
please add some ut for resize fill, we should make sure it only reset the
additional new element's value
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]