From 1f8dbae31aab98654ebf4d64d37b04bff8eb22fd Mon Sep 17 00:00:00 2001 From: Anton Okolnychyi Date: Thu, 24 Aug 2023 14:17:29 -0700 Subject: [PATCH] Core: Plan concurrently if there are multiple delete manifests (#8388) --- core/src/main/java/org/apache/iceberg/DataTableScan.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/iceberg/DataTableScan.java b/core/src/main/java/org/apache/iceberg/DataTableScan.java index a8897043292f..6eaa0d5ec741 100644 --- a/core/src/main/java/org/apache/iceberg/DataTableScan.java +++ b/core/src/main/java/org/apache/iceberg/DataTableScan.java @@ -87,7 +87,7 @@ public CloseableIterable doPlanFiles() { manifestGroup = manifestGroup.ignoreResiduals(); } - if (dataManifests.size() > 1 && shouldPlanWithExecutor()) { + if (shouldPlanWithExecutor() && (dataManifests.size() > 1 || deleteManifests.size() > 1)) { manifestGroup = manifestGroup.planWith(planExecutor()); }