Github user ppadma commented on a diff in the pull request:
https://github.com/apache/drill/pull/597#discussion_r83965017
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/columnreaders/ParquetRecordReader.java
---
@@ -139,6 +155,11 @@ public ParquetRecordReader(
this.batchSize = batchSize;
this.footer = footer;
this.fragmentContext = fragmentContext;
+ if (numRecordsToRead == DEFAULT_RECORDS_TO_READ_NOT_SPECIFIED) {
+ this.numRecordsToRead =
footer.getBlocks().get(rowGroupIndex).getRowCount();
+ } else {
+ this.numRecordsToRead = numRecordsToRead;
--- End diff --
Current code handles if numRecordsToRead is not in the range. So, I am not
adding additional checks here.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---