github-actions[bot] commented on code in PR #25546:
URL: https://github.com/apache/doris/pull/25546#discussion_r1362318097


##########
be/src/vec/sink/vtablet_sink_v2.cpp:
##########
@@ -219,20 +219,32 @@ void VOlapTableSinkV2::_build_tablet_node_mapping() {
     }
 }
 
-void VOlapTableSinkV2::_generate_rows_for_tablet(RowsForTablet& 
rows_for_tablet,
-                                                 const VOlapTablePartition* 
partition,
-                                                 uint32_t tablet_index, int 
row_idx) {
-    // Generate channel payload for sinking data to each tablet
-    for (const auto& index : partition->indexes) {
-        auto tablet_id = index.tablets[tablet_index];
-        if (rows_for_tablet.count(tablet_id) == 0) {
-            Rows rows;
-            rows.partition_id = partition->id;
-            rows.index_id = index.index_id;
-            rows_for_tablet.insert({tablet_id, rows});
+void VOlapTableSinkV2::_generate_rows_for_tablet(

Review Comment:
   warning: method '_generate_rows_for_tablet' can be made static 
[readability-convert-member-functions-to-static]
   
   ```suggestion
   static void VOlapTableSinkV2::_generate_rows_for_tablet(
   ```
   



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