airborne12 commented on code in PR #43243:
URL: https://github.com/apache/doris/pull/43243#discussion_r1830442635

##########
be/src/vec/functions/array/function_array_index.h:
##########
@@ -217,7 +217,7 @@ class FunctionArrayIndex : public IFunction {
         const auto& right_chars = reinterpret_cast<const 
ColumnString&>(right_column).get_chars();
 
         // prepare return data
-        auto dst = ColumnVector<ResultType>::create(offsets.size());
+        auto dst = ColumnVector<ResultType>::create(offsets.size(), 0);
         auto& dst_data = dst->get_data();
         auto dst_null_column = ColumnUInt8::create(offsets.size());

Review Comment:
   need to set default value to 0 like other function.



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