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



##########
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:
       This is the only constructor which is not deprecated available in 
parquet 1.10. Could you suggest any other alternative? Do we continue using the 
old way or is there another work around? 




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