RussellSpitzer commented on a change in pull request #2921:
URL: https://github.com/apache/iceberg/pull/2921#discussion_r707686694



##########
File path: 
spark3/src/main/java/org/apache/iceberg/spark/procedures/ExpireSnapshotsProcedure.java
##########
@@ -90,7 +96,14 @@ public StructType outputType() {
       if (retainLastNum != null) {
         action.retainLast(retainLastNum);
       }
-
+      if (numThreads != null && numThreads > 0) {

Review comment:
       I'd just default this to 1 instead of null and do a precondition on 
numThreads > 0
   
   Currently I believe this is just ignoring invalid numThreads right?




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