Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import org.apache.iceberg.expressions.Expression;
import org.apache.iceberg.hadoop.HadoopInputFile;
import org.apache.iceberg.io.CloseableIterable;
import org.apache.iceberg.io.FileIO;
import org.apache.iceberg.io.InputFile;
import org.apache.iceberg.mapping.NameMapping;
import org.apache.iceberg.mapping.NameMappingParser;
Expand All @@ -74,12 +73,9 @@ public class ReadUtils {

static ParquetReader<Record> createReader(FileScanTask task, Table table, Schema schema) {
String filePath = task.file().path().toString();
InputFile inputFile;
try (FileIO io = table.io()) {
EncryptedInputFile encryptedInput =
EncryptedFiles.encryptedInput(io.newInputFile(filePath), task.file().keyMetadata());
inputFile = table.encryption().decrypt(encryptedInput);
}
EncryptedInputFile encryptedInput =
EncryptedFiles.encryptedInput(table.io().newInputFile(filePath), task.file().keyMetadata());
InputFile inputFile = table.encryption().decrypt(encryptedInput);
Map<Integer, ?> idToConstants =
ReadUtils.constantsMap(task, IdentityPartitionConverters::convertConstant, table.schema());

Expand Down
Loading