File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ <dependency>
2+ <groupId>org.apache.parquet</groupId>
3+ <artifactId>parquet-avro</artifactId>
4+ <exclusions>
5+ <exclusion>
6+ <groupId>org.apache.commons</groupId>
7+ <artifactId>commons-compress</artifactId>
8+ </exclusion>
9+ <exclusion>
10+ <groupId>it.unimi.dsi</groupId>
11+ <artifactId>fastutil</artifactId>
12+ </exclusion>
13+ <exclusion>
14+ <groupId>org.tukaani</groupId>
15+ <artifactId>xz</artifactId>
16+ </exclusion>
17+ <exclusion>
18+ <groupId>com.thoughtworks.paranamer</groupId>
19+ <artifactId>paranamer</artifactId>
20+ </exclusion>
21+ </exclusions>
22+ </dependency>
23+
24+
25+ import org.apache.avro.generic.GenericData;
26+ import org.apache.hadoop.fs.Path;
27+ import org.apache.parquet.avro.AvroParquetReader;
28+ import org.apache.parquet.hadoop.ParquetReader;
29+
30+
31+ try (ParquetReader parquetReader = AvroParquetReader.builder(new Path(fullPathTofile)).build()) {
32+
33+ for (GenericData.Record record = (GenericData.Record) parquetReader.read(); record != null; record = (GenericData.Record) parquetReader.read()) {
You can’t perform that action at this time.
0 commit comments