kaka11chen commented on code in PR #17594:
URL: https://github.com/apache/doris/pull/17594#discussion_r1132282803


##########
be/src/vec/data_types/data_type.cpp:
##########
@@ -56,6 +56,7 @@ void IDataType::update_avg_value_size_hint(const IColumn& 
column, double& avg_va
 
 ColumnPtr IDataType::create_column_const(size_t size, const Field& field) 
const {
     auto column = create_column();
+    column->reserve(size);

Review Comment:
   Use `reserve(1)` instead.



-- 
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