Github user blrunner commented on a diff in the pull request:
https://github.com/apache/tajo/pull/824#discussion_r42072723
--- Diff:
tajo-plan/src/main/java/org/apache/tajo/plan/rewrite/rules/PartitionedTableRewriter.java
---
@@ -421,6 +315,25 @@ private boolean
checkIfDisjunctiveButOneVariable(EvalNode evalNode) {
}
}
+ private void updateTableStat(OverridableConf queryContext,
PartitionedTableScanNode scanNode)
+ throws TajoException {
+ if (scanNode.getInputPaths().length > 0) {
+ try {
+ FileSystem fs =
scanNode.getInputPaths()[0].getFileSystem(queryContext.getConf());
+ long totalVolume = 0;
+
+ for (Path input : scanNode.getInputPaths()) {
+ ContentSummary summary = fs.getContentSummary(input);
+ totalVolume += summary.getLength();
+ totalVolume += summary.getFileCount();
--- End diff --
I removed above code.
---
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.
---