robin-xyzt-ai opened a new issue, #2948:
URL: https://github.com/apache/parquet-java/issues/2948
### Describe the bug, including details regarding any error messages,
version, and platform.
```java
import org.apache.parquet.io.InputFile;
import org.apache.parquet.io.LocalInputFile;
import org.apache.parquet.hadoop.ParquetReader;
import org.apache.avro.generic.GenericRecord;
import org.apache.parquet.avro.AvroParquetReader;
InputFile inputFile = new LocalInputFile(Paths.get('/path/to/parquet/file');
ParquetReader<GenericRecord> reader =
AvroParquetReader.<GenericRecord>builder(inputFile).build();
```
This results in a `NullPointerException` in the
`org.apache.parquet.avro.AvroParquetReader.Builder#getReadSupport` method where
`configuration` is still `null`, because it is not set in the
`org.apache.parquet.hadoop.ParquetReader.Builder#Builder(org.apache.parquet.io.InputFile)`
constructor.
Versions:
```
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.parquet</groupId>
<artifactId>parquet-avro</artifactId>
<version>1.14.1</version>
</dependency>
```
### Component(s)
Avro
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]