tibrewalpratik17 commented on code in PR #12395: URL: https://github.com/apache/pinot/pull/12395#discussion_r1492896625
########## 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: We can move this to Base class too. But i see we will have to make add this logic in multiple methods. Ideally we should have a base method implementation doing this (something like `doAddOrReplaceSegment` and then calling `addOrReplaceSegment` here. Maybe we can take the refactoring in a follow-up PR. -- 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...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org