diff options
author | wangzhenhua <wangzhenhua@huawei.com> | 2017-01-19 22:18:47 -0800 |
---|---|---|
committer | gatorsmile <gatorsmile@gmail.com> | 2017-01-19 22:18:47 -0800 |
commit | 039ed9fe8a2fdcd99e0561af64cda8fe3406bc12 (patch) | |
tree | a3fe8043551f0ae9ee88cc1f1b9df8b9bcaf92fa /docs/security.md | |
parent | 0bf605c2c67ca361cd4aa3a3b4492bef4aef76b9 (diff) | |
download | spark-039ed9fe8a2fdcd99e0561af64cda8fe3406bc12.tar.gz spark-039ed9fe8a2fdcd99e0561af64cda8fe3406bc12.tar.bz2 spark-039ed9fe8a2fdcd99e0561af64cda8fe3406bc12.zip |
[SPARK-19271][SQL] Change non-cbo estimation of aggregate
## What changes were proposed in this pull request?
Change non-cbo estimation behavior of aggregate:
- If groupExpression is empty, we can know row count (=1) and the corresponding size;
- otherwise, estimation falls back to UnaryNode's computeStats method, which should not propagate rowCount and attributeStats in Statistics because they are not estimated in that method.
## How was this patch tested?
Added test case
Author: wangzhenhua <wangzhenhua@huawei.com>
Closes #16631 from wzhfy/aggNoCbo.
Diffstat (limited to 'docs/security.md')
0 files changed, 0 insertions, 0 deletions