Uh oh!
There was an error while loading. Please reload this page.
ORCA: allow not enforce distribution key in 3-stage aggregate - #776
Conversation
The context about this PR: ORCA can create the 3-stage agg in So u can see the 3-stage agg path but no cost generated in the memo. like The GroupExpression#6 is the Three Stage Scalar DQA. Details of why this path have no cost:
|
my-ship-it
commented
Dec 12, 2024
Just tried, but cannot produce 3-stage aggregate still, the cost is still higher than 2-stage aggregate. |
d641a07 to
4b0ab11Comparejiaqizho
commented
Dec 16, 2024
also need running with GUC updated the test cases... |
Uh oh!
There was an error while loading. Please reload this page.
4b0ab11 to
990d240Compare
Fixes#659
Change log
In the case where the group-by key is a distribution key, ORCA disables 3-stage aggregate by default.
Add a new GUC(optimizer_enable_use_distribution_in_dqa) to allow not enforce distribution key in 3-stage aggregate in ORCA. which enables local deduplication before the 2-stage agg.
Type of Change
Breaking Changes
Test Plan
make installcheckmake -C src/test installcheck-cbdb-parallelImpact
Performance:
User-facing changes:
Dependencies:
Checklist
Additional Context
CI Skip Instructions