ulysses-you commented on code in PR #5101: URL: https://github.com/apache/paimon/pull/5101#discussion_r1962784258
########## paimon-common/src/main/java/org/apache/paimon/utils/InternalRowUtils.java: ########## @@ -48,13 +48,74 @@ import java.math.BigDecimal; import java.math.RoundingMode; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; /** Utils for {@link InternalRow} structures. */ public class InternalRowUtils { + public static boolean equals(Object data1, Object data2, DataType dataType) { + if ((data1 == null) != (data2 == null)) { + return false; + } + if (data1 != null) { + if (data1 instanceof InternalRow) { Review Comment: @JingsongLi both array and map have their own equals and hashcode, so I leave it to use o.equals -- 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: issues-unsubscr...@paimon.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org