[
https://issues.apache.org/jira/browse/HIVE-24479?focusedWorklogId=521176&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-521176
]
ASF GitHub Bot logged work on HIVE-24479:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 07/Dec/20 14:14
Start Date: 07/Dec/20 14:14
Worklog Time Spent: 10m
Work Description: kasakrisz merged pull request #1734:
URL: https://github.com/apache/hive/pull/1734
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 521176)
Time Spent: 20m (was: 10m)
> Introduce setting to set lower bound of hash aggregation reduction.
> -------------------------------------------------------------------
>
> Key: HIVE-24479
> URL: https://issues.apache.org/jira/browse/HIVE-24479
> Project: Hive
> Issue Type: Improvement
> Components: Physical Optimizer
> Affects Versions: 4.0.0
> Reporter: Krisztian Kasa
> Assignee: Krisztian Kasa
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> * Default setting of hash group by min reduction % is 0.99.
> * During compilation, we check its effectiveness and adjust it accordingly in
> {{SetHashGroupByMinReduction}}:
> {code}
> float defaultMinReductionHashAggrFactor = desc.getMinReductionHashAggr();
> float minReductionHashAggrFactor = 1f - ((float) ndvProduct / numRows);
> if (minReductionHashAggrFactor < defaultMinReductionHashAggrFactor) {
> desc.setMinReductionHashAggr(minReductionHashAggrFactor);
> }
> {code}
> For certain queries, this computation turns out to be "0".
> This forces operator to skip HashAggregates completely and always ends up
> choosing streaming mode.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)