drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudheeshkatkam <...@git.apache.org>
Subject [GitHub] drill pull request: Drill 4372 review
Date Wed, 16 Mar 2016 22:25:50 GMT
Github user sudheeshkatkam commented on a diff in the pull request:

    https://github.com/apache/drill/pull/397#discussion_r56426814
  
    --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/DrillReduceAggregatesRule.java
---
    @@ -100,8 +108,13 @@ public void onMatch(RelOptRuleCall ruleCall) {
        */
       private boolean containsAvgStddevVarCall(List<AggregateCall> aggCallList) {
         for (AggregateCall call : aggCallList) {
    -      if (call.getAggregation() instanceof SqlAvgAggFunction
    -          || call.getAggregation() instanceof SqlSumAggFunction) {
    +      SqlAggFunction sqlAggFunction = call.getAggregation();
    +      if(sqlAggFunction instanceof DrillCalciteSqlWrapper) {
    --- End diff --
    
    Would a utility class that does the unwrapping be helpful?
    
    Different util functions unwrap different operators.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message