You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/06/21 21:07:21 UTC
[GitHub] [iceberg] rdblue commented on a change in pull request #2716: Use equals() instead of Ref. equality
rdblue commented on a change in pull request #2716:
URL: https://github.com/apache/iceberg/pull/2716#discussion_r655704910
##########
File path: core/src/main/java/org/apache/iceberg/avro/PruneColumns.java
##########
@@ -149,13 +150,14 @@ public Schema array(Schema array, Schema element) {
Schema valueProjection = element.getField("value").schema();
// it is possible that key is not selected, and
// key schemas can be different if new field ids were assigned to them
- if (keyProjectionField != null && keyValue.getField("key").schema() != keyProjectionField.schema()) {
+ if (keyProjectionField != null && !Objects.equals(keyValue.getField("key").schema(),
+ keyProjectionField.schema())) {
Review comment:
Minor: Try to wrap lines close to the top level, rather than wrapping inside of argument lists. Wrapping after `&&` makes this more readable.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org