nastra commented on code in PR #15175:
URL: https://github.com/apache/iceberg/pull/15175#discussion_r2877296052


##########
spark/v4.1/spark/src/main/java/org/apache/iceberg/spark/actions/RewritePositionDeleteFilesSparkAction.java:
##########
@@ -377,4 +378,8 @@ private String jobDesc(
           table.name());
     }
   }
+
+  private String partitionDescription(StructLike struct) {
+    return struct instanceof StructProjection ? ((StructProjection) 
struct).description() : "";

Review Comment:
   we don't really need to cast with JDK 17 anymore. we can define the variable 
name already as part of the instanceof



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