the-other-tim-brown commented on code in PR #13411:
URL: https://github.com/apache/hudi/pull/13411#discussion_r2139121781


##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/KeyBasedFileGroupRecordBuffer.java:
##########
@@ -121,6 +129,18 @@ public boolean containsLogRecord(String recordKey) {
 
   protected boolean hasNextBaseRecord(T baseRecord) throws IOException {
     String recordKey = readerContext.getRecordKey(baseRecord, readerSchema);
+    int comparison;
+    while (sortOutput && !getLogRecordKeysSorted().isEmpty() && (comparison = 
getLogRecordKeysSorted().peek().compareTo(recordKey)) <= 0) {

Review Comment:
   The sorting is also required in the merge handle so it cannot go into the 
`FileGroupReaderBasedAppendHandle`



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

Reply via email to