samarthjain commented on a change in pull request #828: iceberg-spark changes
for vectorized reads
URL: https://github.com/apache/incubator-iceberg/pull/828#discussion_r390635024
##########
File path: spark/src/main/java/org/apache/iceberg/spark/source/Reader.java
##########
@@ -305,61 +342,74 @@ public Statistics estimateStatistics() {
@Override
public String toString() {
return String.format(
- "IcebergScan(table=%s, type=%s, filters=%s, caseSensitive=%s)",
- table, lazySchema().asStruct(), filterExpressions, caseSensitive);
+ "IcebergScan(table=%s, type=%s, filters=%s, caseSensitive=%s,
batchedReads=%s)",
+ table, lazySchema().asStruct(), filterExpressions, caseSensitive,
enableBatchRead);
}
- private static class ReadTask implements InputPartition<InternalRow>,
Serializable {
- private final CombinedScanTask task;
+ @SuppressWarnings("checkstyle:VisibilityModifier")
+ private static class BaseReadTask implements Serializable {
+ final CombinedScanTask task;
private final String tableSchemaString;
private final String expectedSchemaString;
- private final Broadcast<FileIO> io;
- private final Broadcast<EncryptionManager> encryptionManager;
- private final boolean caseSensitive;
- private final boolean localityPreferred;
+ final Broadcast<FileIO> io;
+ final Broadcast<EncryptionManager> encryptionManager;
+ final boolean caseSensitive;
private transient Schema tableSchema = null;
private transient Schema expectedSchema = null;
- private transient String[] preferredLocations;
- private ReadTask(CombinedScanTask task, String tableSchemaString, String
expectedSchemaString,
- Broadcast<FileIO> io, Broadcast<EncryptionManager>
encryptionManager,
- boolean caseSensitive, boolean localityPreferred) {
+ BaseReadTask(CombinedScanTask task, String tableSchemaString, String
expectedSchemaString,
Review comment:
I think 3 classes are still needed since we create different
`InputPartitionReader` for each version.
----------------------------------------------------------------
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]