sollhui commented on code in PR #62661:
URL: https://github.com/apache/doris/pull/62661#discussion_r3378876661


##########
be/src/exec/sink/writer/vtablet_writer_v2.cpp:
##########
@@ -158,9 +158,10 @@ Status VTabletWriterV2::_init(RuntimeState* state, 
RuntimeProfile* profile) {
     _location = _pool->add(new OlapTableLocationParam(table_sink.location));
     _nodes_info = _pool->add(new DorisNodesInfo(table_sink.nodes_info));
 
-    // if distributed column list is empty, we can ensure that tablet is with 
random distribution info
-    // and if load_to_single_tablet is set and set to true, we should find 
only one tablet in one partition
-    // for the whole olap table sink
+    // If distributed column list is empty, the table uses random distribution.
+    // Mode priority (highest to lowest):
+    //   1. FIND_TABLET_EVERY_SINK: load_to_single_tablet=true (legacy 
single-tablet mode).
+    //   2. FIND_TABLET_EVERY_BATCH: default round-robin per batch.

Review Comment:
   This path should not receive adaptive random bucket assignments in the 
current branch. FE only sets enable_adaptive_random_bucket in cloud mode, while 
BE only selects VTabletWriterV2 when !config::is_cloud_mode(). Therefore V2 
does not run with receiver-side adaptive random bucket rewritten 
load_tablet_idx/local_bucket_seqs in the normal execution path.



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