zclllyybb commented on code in PR #50798:
URL: https://github.com/apache/doris/pull/50798#discussion_r2084162732


##########
be/src/vec/data_types/serde/data_type_struct_serde.cpp:
##########
@@ -213,6 +213,9 @@ Status 
DataTypeStructSerDe::deserialize_one_cell_from_json(IColumn& column, Slic
 
     // check stuff:
     if (field_pos < elem_size) {
+        for (size_t j = 0; j < field_pos; j++) {
+            struct_column.get_column(j).pop_back(1);

Review Comment:
   why pop(1) many times rather than pop(n)?



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