zclllyybb commented on code in PR #56648:
URL: https://github.com/apache/doris/pull/56648#discussion_r2439160881
##########
be/src/vec/functions/function_varbinary.cpp:
##########
@@ -59,30 +64,29 @@ class FunctionToBinary : public IFunction {
auto col_res = ColumnVarbinary::create();
const auto& data = col->get_chars();
const auto& offsets = col->get_offsets();
+ col_res->get_data().resize_fill(input_rows_count);
Review Comment:
用assign传入默认值,而不是resize_fill,会更符合语义。
--
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]