[ 
https://issues.apache.org/jira/browse/HIVE-24084?focusedWorklogId=477884&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-477884
 ]

ASF GitHub Bot logged work on HIVE-24084:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Sep/20 14:00
            Start Date: 02/Sep/20 14:00
    Worklog Time Spent: 10m 
      Work Description: kgyrtkirk commented on a change in pull request #1439:
URL: https://github.com/apache/hive/pull/1439#discussion_r482092255



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveAggregateJoinTransposeRule.java
##########
@@ -290,7 +291,8 @@ public void onMatch(RelOptRuleCall call) {
       RelNode r = relBuilder.build();
       RelOptCost afterCost = mq.getCumulativeCost(r);
       RelOptCost beforeCost = mq.getCumulativeCost(aggregate);
-      if (afterCost.isLt(beforeCost)) {

Review comment:
       yes; if we use `isLe` the current cost model which only takes rowcount 
into account will prefer the pushing aggregates further
   
   there is another alternative to the `force` based approach: the rule can be 
configured to use the more advanced cost system - so that it could take cpu/io 
cost into account




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 477884)
    Time Spent: 50m  (was: 40m)

> Enhance cost model to push down more Aggregates
> -----------------------------------------------
>
>                 Key: HIVE-24084
>                 URL: https://issues.apache.org/jira/browse/HIVE-24084
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to