wangyum commented on a change in pull request #855:
URL: https://github.com/apache/parquet-mr/pull/855#discussion_r559916428
##########
File path:
parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileReader.java
##########
@@ -827,7 +827,7 @@ public long getRecordCount() {
}
public long getFilteredRecordCount() {
- if (!options.useColumnIndexFilter()) {
+ if (!options.useColumnIndexFilter() && options.getRecordFilter() != null) {
Review comment:
How to reproduce this issue:
```scala
val hadoopInputFile = HadoopInputFile.fromPath(new
Path("/path/to/parquet/000.snappy.parquet"), new Configuration())
val reader = ParquetFileReader.open(hadoopInputFile)
val recordCount = reader.getFilteredRecordCount
reader.close()
```
----------------------------------------------------------------
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]