yabola commented on code in PR #39950: URL: https://github.com/apache/spark/pull/39950#discussion_r1142848071
########## sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala: ########## @@ -205,11 +212,21 @@ class ParquetFileFormat val sharedConf = broadcastedHadoopConf.value.value - lazy val footerFileMetaData = - ParquetFooterReader.readFooter(sharedConf, filePath, SKIP_ROW_GROUPS).getFileMetaData + val fileRange = HadoopReadOptions.builder(sharedConf, split.getPath) Review Comment: Yes, before I created and passed `ParquetFileReader` because I wanted to create one less `file.newStream()` in it (if there is no filter pushdown), but it doesn’t seem to make much sense. I have changed to pass footer here. Please take a look, thank you! -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org