Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(HashAgg): Update abandoned Partial Aggregation flag condition #12116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wankunde
Copy link

@wankunde wankunde commented Jan 18, 2025

Now, in partial aggregation, if aggregationPct > 40% (hardcoded), abandonedPartialAggregation flag will be set, and more rows will be produced without partial aggregation in partial aggregation operator. We can use config abandonPartialAggregationMinPct here instead of 40%.

abandonPartialAggregationMinPct is 80% in velox, and 90% in gluten, which I think is more reasonable.

Testing with TPCDS q67, the query time went from 109 seconds to 90 seconds.

image

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 18, 2025
Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 7e09299
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/678ba5effd2d430008fe29c7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants