HappenLee commented on code in PR #41623:
URL: https://github.com/apache/doris/pull/41623#discussion_r1794907180


##########
be/src/vec/columns/column_vector.cpp:
##########
@@ -431,6 +431,16 @@ size_t ColumnVector<T>::filter(const IColumn::Filter& 
filter) {
     return new_size;
 }
 
+template <typename T>
+void ColumnVector<T>::insert_many_from(const IColumn& src, size_t position, 
size_t length) {
+    auto old_size = data.size();
+    data.resize(old_size + length);
+    auto& vals = assert_cast<const Self&>(src).get_data();

Review Comment:
   better use `memcpy` to do the work



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to