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


##########
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:
   const column nested column only need size == 1, do not need reserve `size`



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

Reply via email to