Skip to content
Open
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
@@ -1,5 +1,6 @@
package com.databricks.labs.delta.sharing.java.format.parquet;

import org.apache.hadoop.conf.Configuration;
import org.apache.parquet.avro.AvroParquetReader;
import org.apache.parquet.hadoop.ParquetReader;

Expand Down Expand Up @@ -98,10 +99,14 @@ public List<T> readN(Integer num) throws IOException {
*/
private List<ParquetReader<T>> getReaders() throws IOException {
List<ParquetReader<T>> readers = new LinkedList<>();
Configuration conf = new Configuration();

conf.set("parquet.avro.readInt96AsFixed", "true");

for (Path path : paths) {
LocalInputFile localInputFile = new LocalInputFile(path);
ParquetReader<T> reader =
AvroParquetReader.<T>builder(localInputFile).build();
AvroParquetReader.<T>builder(localInputFile).withConf(conf).build();
readers.add(reader);
}
return readers;
Expand Down