Github user gparai commented on a diff in the pull request:
https://github.com/apache/drill/pull/802#discussion_r108823495
--- Diff:
contrib/format-maprdb/src/main/java/org/apache/drill/exec/store/mapr/db/MapRDBPushFilterIntoScan.java
---
@@ -184,6 +184,8 @@ protected void doPushFilterIntoBinaryGroupScan(final
RelOptRuleCall call,
return; //no filter pushdown ==> No transformation.
}
+ // Set rowCount in newScanSpec so we do not go and fetch rowCount (an
expensive operation) again from MapR DB client.
+ newScanSpec.setRowCount(groupScan.getHBaseScanSpec().getRowCount());
--- End diff --
Change the constructor for BinaryTableGroupScan to also pass in TableStats
and add a getter for TableStats. This should be sufficient for passing around
the rows.
---
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.
---