aokolnychyi commented on code in PR #7630:
URL: https://github.com/apache/iceberg/pull/7630#discussion_r1197239440
##########
spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/actions/RewriteDataFilesSparkAction.java:
##########
@@ -235,6 +199,37 @@ Map<StructLike, List<List<FileScanTask>>>
planFileGroups(long startingSnapshotId
}
}
+ private StructLikeMap<List<FileScanTask>> groupByPartition(
+ StructType partitionType, Iterable<FileScanTask> tasks) {
+ StructLikeMap<List<FileScanTask>> filesByPartition =
StructLikeMap.create(partitionType);
Review Comment:
This should continue to use `table.spec()` and we don't need
`coercePartition`. The old behavior of grouping all files from an olde spec
should be preserved.
--
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]