sunchao commented on code in PR #37419:
URL: https://github.com/apache/spark/pull/37419#discussion_r938458487
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala:
##########
@@ -228,6 +228,13 @@ class ParquetFileFormat
SQLConf.PARQUET_TIMESTAMP_NTZ_ENABLED.key,
sparkSession.sessionState.conf.parquetTimestampNTZEnabled)
+ // See PARQUET-2170.
+ // Disable column index optimisation when required schema is empty so we
get the correct
+ // row count from parquet-mr.
+ if (requiredSchema.isEmpty) {
Review Comment:
Do we need a similar fix for DSv2?
--
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]