PavithraRamachandran commented on a change in pull request #28484:
URL: https://github.com/apache/spark/pull/28484#discussion_r422870249



##########
File path: 
sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/SpecificParquetRecordReaderBase.java
##########
@@ -144,13 +113,16 @@ public void initialize(InputSplit inputSplit, 
TaskAttemptContext taskAttemptCont
     String sparkRequestedSchemaString =
         
configuration.get(ParquetReadSupport$.MODULE$.SPARK_ROW_REQUESTED_SCHEMA());
     this.sparkSchema = 
StructType$.MODULE$.fromString(sparkRequestedSchemaString);
-    this.reader = new ParquetFileReader(
-        configuration, footer.getFileMetaData(), file, blocks, 
requestedSchema.getColumns());
+    this.reader =  new ParquetFileReader(HadoopInputFile.fromPath(file, 
configuration),
+            HadoopReadOptions.builder(configuration).build());

Review comment:
       ok.I shall change back to the old constructor. there are other api 
changes like for example ParquetFileReader.readFooter, 
ParquetFileReader.readAllFootersInParallel, deprecated class ParquetInputSplit




----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to