wombatu-kun commented on code in PR #12772:
URL: https://github.com/apache/hudi/pull/12772#discussion_r2120052005


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/DefaultSparkRecordMerger.java:
##########
@@ -110,7 +112,7 @@ public Option<Pair<HoodieRecord, Schema>> 
partialMerge(HoodieRecord older, Schem
         return Option.of(Pair.of(newer, newSchema));
       }
     }
-    if (older.getOrderingValue(oldSchema, 
props).compareTo(newer.getOrderingValue(newSchema, props)) > 0) {
+    if (compareValues(older.getOrderingValue(oldSchema, props), 
newer.getOrderingValue(newSchema, props)) > 0) {

Review Comment:
   Not the same. We are not able to use HoodieUTF8String here, because it's 
hudi-common module.



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