clintropolis commented on a change in pull request #8624: Use 
targetRowsPerSegment for single-dim partitions
URL: https://github.com/apache/incubator-druid/pull/8624#discussion_r333233036
 
 

 ##########
 File path: 
indexing-hadoop/src/main/java/org/apache/druid/indexer/DeterminePartitionsJob.java
 ##########
 @@ -661,7 +661,7 @@ protected void innerReduce(Context context, SortableBytes 
keyBytes, Iterable<Dim
         }
 
         // See if we need to cut a new partition ending immediately before 
this dimension value
-        if (currentDimPartition.rows > 0 && currentDimPartition.rows + 
dvc.numRows >= config.getTargetPartitionSize()) {
+        if (currentDimPartition.rows > 0 && currentDimPartition.rows + 
dvc.numRows > config.getTargetPartitionSize()) {
 
 Review comment:
   Ah, I don't think it needs reverted, I just wanted to know the motivation. 
It is probably best to look at how other similar row oriented indexing limits 
are handled in other indexing types to make sure the behavior is consistent 
everywhere if possible

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to