Github user jinfengni commented on a diff in the pull request:
https://github.com/apache/drill/pull/328#discussion_r50302540
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/partition/PruneScanRule.java
---
@@ -78,71 +94,68 @@ public PruneScanRule(RelOptRuleOperand operand, String
id, OptimizerRulesContext
this.optimizerContext = optimizerContext;
}
- public static final RelOptRule getFilterOnProject(OptimizerRulesContext
optimizerRulesContext) {
- return new PruneScanRule(
- RelOptHelper.some(DrillFilterRel.class,
RelOptHelper.some(DrillProjectRel.class, RelOptHelper.any(DrillScanRel.class))),
- "PruneScanRule:Filter_On_Project",
- optimizerRulesContext) {
+ private static class DirPruneScanFilterOnProjectRule extends
PruneScanRule {
+ private final boolean calciteLogical;
--- End diff --
You are right. The flag is not needed now. I will refactor the rules.
---
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.
---