nastra commented on code in PR #18486:
URL: https://github.com/apache/iceberg/pull/18486#discussion_r4482186374
##########
core/src/main/java/org/apache/iceberg/encryption/InputFilesDecryptor.java:
##########
@@ -71,13 +78,15 @@ private Map<String, InputFile> inputFiles() {
return lazyInputFiles;
}
- private static Collection<ContentFile<?>>
referencedFiles(Iterable<FileScanTask> tasks) {
+ private static Collection<ContentFile<?>> referencedFiles(Iterable<? extends
ScanTask> tasks) {
Map<String, ContentFile<?>> files = Maps.newHashMap();
- for (FileScanTask task : tasks) {
- files.put(task.file().location(), task.file());
- for (DeleteFile delete : task.deletes()) {
- files.put(delete.location(), delete);
+ for (ScanTask task : tasks) {
+ if (!(task instanceof HasReferencedFiles referencing)) {
Review Comment:
nit: Preconditions.checkArgument
--
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]