yabola commented on code in PR #39950:
URL: https://github.com/apache/spark/pull/39950#discussion_r1155105787
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala:
##########
@@ -205,11 +205,22 @@ class ParquetFileFormat
val sharedConf = broadcastedHadoopConf.value.value
- lazy val footerFileMetaData =
- ParquetFooterReader.readFooter(sharedConf, filePath,
SKIP_ROW_GROUPS).getFileMetaData
+ val fileFooter = if (enableVectorizedReader) {
+ // This can avoid reading the footer twice(currently only optimize for
vectorized read).
Review Comment:
I updated comments, 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: [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]