RussellSpitzer commented on pull request #3292:
URL: https://github.com/apache/iceberg/pull/3292#issuecomment-964543893
I'm going to try out something like
```java
public static CloseableIterable<FileScanTask>
splitOnRowGroups(CloseableIterable<FileScanTask> tasks, long fallbackSplitSize)
{
Iterable<FileScanTask> splitTasks = FluentIterable
.from(tasks)
.transformAndConcat(input -> {
if (input.file().splitOffsets() != null) {
return input.split(0); // Split on offsets, 1 Offset per split
} else {
return input.split(fallbackSplitSize);
}
});
// Capture manifests which can be closed after scan planning
return CloseableIterable.combine(splitTasks, tasks);
}
```
--
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]