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


##########
be/src/vec/exprs/lambda_function/varray_map_function.cpp:
##########
@@ -233,7 +239,14 @@ class ArrayMapFunction : public LambdaFunction {
                 }
             }
 
-            lambda_block.set_columns(std::move(columns));
+            if (!mem_reuse) {
+                for (int i = 0; i < column_size; ++i) {
+                    
lambda_block.insert(vectorized::ColumnWithTypeAndName(std::move(columns[i]),
+                                                                          
data_types[i], names[i]));
+                }
+            } else {
+                columns.clear();

Review Comment:
   why here need clear



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