ankitsultana commented on code in PR #12395:
URL: https://github.com/apache/pinot/pull/12395#discussion_r1492976184


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/upsert/ConcurrentMapPartitionUpsertMetadataManager.java:
##########
@@ -69,6 +69,9 @@ protected void addOrReplaceSegment(ImmutableSegmentImpl 
segment, ThreadSafeMutab
     String segmentName = segment.getSegmentName();
     segment.enableUpsert(this, validDocIds, queryableDocIds);
 
+    if (_partialUpsertHandler != null) {
+      recordInfoIterator = resolveComparisonTies(recordInfoIterator, 
_hashFunction);
+    }

Review Comment:
   @Jackie-Jiang : this small refactor suggestion looks good to me. Though I'd 
probably change the name a bit. Since by usual naming conventions, a method 
like `addOrReplaceSegment` would be the one calling `doAddOrReplaceSegment`.
   
   lmk your thoughts.



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