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

feat(query): support spill for new agg hashtable #14905

Merged
merged 11 commits into from
Mar 13, 2024

Conversation

Freejww
Copy link
Contributor

@Freejww Freejww commented Mar 11, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

In the previous PR #14798, we support new agg hashtable on cluster. In this PR, we support spill for new agg hashtable on singleton and cluster.

Note:
The setting enable_experimental_aggregate_hashtable=1 is temporary. Once the CI tests pass, we will change it to false before merging.

  • Fixes #[Link the issue here]

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@github-actions github-actions bot added the pr-feature this PR introduces a new feature to the codebase label Mar 11, 2024
@sundy-li sundy-li requested a review from zhang2014 March 11, 2024 13:25
@BohuTANG
Copy link
Member

Please make each commit is meaningful, not a test
image

@JackTan25
Copy link
Contributor

JackTan25 commented Mar 11, 2024

Let me make sure one thing, the agg hash table won't be used for join, right?

@Freejww Freejww closed this Mar 11, 2024
@Freejww Freejww reopened this Mar 11, 2024
@Freejww
Copy link
Contributor Author

Freejww commented Mar 11, 2024

Let me make sure one thing, the agg hash table won't be used for join, right?

It uses for group_by

@Dousir9
Copy link
Member

Dousir9 commented Mar 11, 2024

Let me make sure one thing, the agg hash table won't be used for join, right?

Right.

@sundy-li sundy-li added this pull request to the merge queue Mar 13, 2024
Merged via the queue into databendlabs:main with commit 31e9ad0 Mar 13, 2024
71 checks passed
yufan022 pushed a commit to yufan022/databend that referenced this pull request Jun 18, 2024
yufan022 pushed a commit to yufan022/databend that referenced this pull request Jun 18, 2024
* test

* test

* finish singleton spill

* cluster spill

* Update src/query/service/src/pipelines/processors/transforms/aggregator/aggregate_meta.rs

Co-authored-by: Winter Zhang <coswde@gmail.com>

* add Result<> for func return type

* fix bug

* fix decimal bug

* remove output columns(AggregatePartial) to pass ci

* revert set

---------

Co-authored-by: jw <freejw@gmail.com>
Co-authored-by: Winter Zhang <coswde@gmail.com>

(cherry picked from commit 31e9ad0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants