rdblue commented on code in PR #5157:
URL: https://github.com/apache/iceberg/pull/5157#discussion_r909679741


##########
core/src/main/java/org/apache/iceberg/util/StructLikeWrapper.java:
##########
@@ -65,6 +67,10 @@ public boolean equals(Object other) {
 
     StructLikeWrapper that = (StructLikeWrapper) other;
 
+    if (!type.equals(that.type)) {

Review Comment:
   This will check nested field docs. Is that the intended behavior? I think 
you want something more like `sameType`, possibly also ignoring nullability.
   
   I should also note that I'm not sure that this is a good idea. 
`StructLikeWrapper` is not intended for comparing two arbitrary structs.



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