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


##########
be/src/vec/sink/vrow_distribution.cpp:
##########
@@ -456,15 +507,19 @@ Status VRowDistribution::generate_rows_distribution(
     }
 
     Status st = Status::OK();
-    if (_vpartition->is_auto_detect_overwrite()) {
+    if (_vpartition->is_auto_detect_overwrite() && !_deal_batched) {
         // when overwrite, no auto create partition allowed.
-        st = _generate_rows_distribution_for_auto_overwrite(block.get(), 
has_filtered_rows,
-                                                            
row_part_tablet_ids);
+        VLOG_TRACE << "Debugging " << this << '\n' << block->dump_data(0, 1) 
<< "auto detect";
+        st = _generate_rows_distribution_for_auto_overwrite(block.get(), 
partition_cols_idx,
+                                                            has_filtered_rows, 
row_part_tablet_ids,
+                                                            rows_stat_val);
     } else if (_vpartition->is_auto_partition() && !_deal_batched) {
+        VLOG_TRACE << "Debugging " << this << '\n' << block->dump_data(0, 1) 
<< "auto partition";
         st = _generate_rows_distribution_for_auto_partition(block.get(), 
partition_cols_idx,
                                                             has_filtered_rows, 
row_part_tablet_ids,
                                                             rows_stat_val);
     } else { // not auto partition
+        VLOG_TRACE << "Debugging " << this << '\n' << block->dump_data(0, 1) 
<< "normal batch";

Review Comment:
   Remove the Debuggging log



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