rdblue commented on a change in pull request #153: [Baseline] Apply baseline 
linting to iceberg-core
URL: https://github.com/apache/incubator-iceberg/pull/153#discussion_r280600033
 
 

 ##########
 File path: core/src/main/java/org/apache/iceberg/MergingSnapshotUpdate.java
 ##########
 @@ -217,22 +215,20 @@ protected void add(DataFile file) {
         // open all of the manifest files in parallel, use index to avoid 
reordering
         Tasks.range(filtered.length)
             .stopOnFailure().throwFailureWhenFinished()
-            .executeWith(getWorkerPool())
+            .executeWith(ThreadPools.getWorkerPool())
             .run(index -> {
-              ManifestFile manifest = filterManifest(
-                  deleteExpression, metricsEvaluator,
-                  manifests.get(index));
+              ManifestFile manifest = filterManifest(metricsEvaluator, 
manifests.get(index));
               filtered[index] = manifest;
             }, IOException.class);
 
         for (ManifestFile manifest : filtered) {
-          PartitionSpec spec = ops.current().spec(manifest.partitionSpecId());
+          PartitionSpec manifestSpec = 
ops.current().spec(manifest.partitionSpecId());
           Iterable<DataFile> manifestDeletes = 
filteredManifestToDeletedFiles.get(manifest);
           if (manifestDeletes != null) {
-            for (DataFile file : manifestDeletes) {
-              summaryBuilder.deletedFile(spec, file);
+            manifestDeletes.forEach(file -> {
 
 Review comment:
   This is another change that looks like it's "fixing" cyclomatic complexity. 
Can we refactor this in a way that doesn't use lambdas as well?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to