rdblue commented on a change in pull request #188: Split parquet file scan
tasks at row group boundaries
URL: https://github.com/apache/incubator-iceberg/pull/188#discussion_r285219488
##########
File path: core/src/main/java/org/apache/iceberg/BaseFileScanTask.java
##########
@@ -70,11 +72,12 @@ public Expression residual() {
@Override
public Iterable<FileScanTask> split(long splitSize) {
- if (file.format().isSplittable()) {
- return () -> new SplitScanTaskIterator(splitSize, this);
- } else {
- return ImmutableList.of(this);
+ if (file.splitOffsets() != null) {
Review comment:
The first check should still be whether the format is splittable. If it
isn't, we should not split even if there are recommended locations.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]