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

chore(query): refactor new transform partition bucket for new aggregation hashtable #15093

Merged
merged 13 commits into from
Mar 30, 2024

Conversation

Freejww
Copy link
Contributor

@Freejww Freejww commented Mar 26, 2024

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

Summary

In the previous #14798, we initialized all data at once for the new aggregation hashtable. This approach may have caused a performance decrease, particularly on queries such as hits-q18 (referred to as "short-circuit query").

In this PR, we introduced new_transform_partition_bucket for the new aggregation hashtable. We utilize a working bucket similar to the old transform_partition_bucket to handle bucket incrementally.

  • 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):

@github-actions github-actions bot added the pr-chore this PR only has small changes that no need to record, like coding styles. label Mar 26, 2024
@Freejww Freejww added the ci-cloud Build docker image for cloud test label Mar 26, 2024
@Freejww Freejww added ci-cloud Build docker image for cloud test and removed ci-cloud Build docker image for cloud test labels Mar 27, 2024
@sundy-li sundy-li force-pushed the fix/hits-q18-limit branch from 00d79b3 to 9e0e8c1 Compare March 27, 2024 08:28
Copy link
Contributor

Docker Image for PR

  • tag: pr-15093-f59707c

note: this image tag is only available for internal use,
please check the internal doc for more details.

@databendlabs databendlabs deleted a comment from github-actions bot Mar 27, 2024
@Freejww Freejww marked this pull request as draft March 27, 2024 13:18
@Freejww Freejww force-pushed the fix/hits-q18-limit branch from 9e0e8c1 to 1f77fad Compare March 30, 2024 14:13
@Freejww Freejww marked this pull request as ready for review March 30, 2024 14:14
@sundy-li sundy-li enabled auto-merge March 30, 2024 14:52
@sundy-li sundy-li added this pull request to the merge queue Mar 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 30, 2024
@Freejww Freejww added this pull request to the merge queue Mar 30, 2024
Merged via the queue into databendlabs:main with commit f8494c8 Mar 30, 2024
72 checks passed
@Freejww Freejww deleted the fix/hits-q18-limit branch March 30, 2024 16:39
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
…tion hashtable (databendlabs#15093)

* finish new transform partition bucket for singleton

* support for cluster

* fix new transform partition bucket

* revert

* fix cluster spill bug

* remove code

* fix logic shortcirt bug

* fix logic shortcirt bug

* refactor block_number

* fix block_number

* fix spill hang by avoid sending empty block

---------

Co-authored-by: jw <freejw@gmail.com>
Co-authored-by: sundy-li <543950155@qq.com>

(cherry picked from commit f8494c8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-cloud Build docker image for cloud test pr-chore this PR only has small changes that no need to record, like coding styles.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants