fix compile with java 8 (#14045)

This commit is contained in:
Clint Wylie 2023-04-07 07:01:38 -07:00 committed by GitHub
parent 5ee4ecee62
commit a769f14652
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class ExternalInputSpecSlicer implements InputSpecSlicer
((SplittableInputSource<?>) splittableInputSource.withSplit((InputSplit) split))
.createSplits(spec.getInputFormat(), FilePerSplitHintSpec.INSTANCE)
.map(subSplit -> splittableInputSource.withSplit((InputSplit) subSplit))
.forEach(subSources::add);
.forEach(s -> ((List) subSources).add(s));
}
if (subSources.isEmpty()) {