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): modify new_agg_hashtable payload transmission method on singleton and support new_agg_hashtable on cluster #14798

Merged
merged 8 commits into from
Mar 5, 2024

Conversation

Freejww
Copy link
Contributor

@Freejww Freejww commented Feb 29, 2024

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

Summary

  1. In the previous PR feat(query): agg-hashtable-singleton #14524, we implemented a new_agg_hashtable on singleton. In the partial phase, we sent the entire PartitionedPayload. While this approach is correct for singletons, it may cause scatter skew if used in the same manner on a cluster. To ensure compatibility with the cluster, we refactored the payload transmission method for new_agg_hashtable in the standalone version. Now, we send each individual Payload separately.

  2. support new_agg_hashtable on cluster, to be enabled using: set enable_experimental_aggregate_hashtable = 1;

  • 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-chore this PR only has small changes that no need to record, like coding styles. label Feb 29, 2024
@Freejww Freejww marked this pull request as draft February 29, 2024 13:25
@Freejww Freejww marked this pull request as ready for review February 29, 2024 14:47
@BohuTANG
Copy link
Member

Please provide a summary of this PR, highlighting its key objectives :)
A good PR summary example: #14715

@Freejww Freejww added the ci-benchmark Benchmark: run all test label Mar 1, 2024
Copy link
Contributor

github-actions bot commented Mar 1, 2024

Docker Image for PR

  • tag: pr-14798-fb5a80a

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

@Freejww Freejww marked this pull request as draft March 1, 2024 03:36
@sundy-li sundy-li removed the ci-benchmark Benchmark: run all test label Mar 1, 2024
@Freejww Freejww marked this pull request as ready for review March 4, 2024 03:13
@sundy-li sundy-li marked this pull request as draft March 4, 2024 04:49
@Freejww Freejww marked this pull request as ready for review March 4, 2024 11:41
@Freejww Freejww marked this pull request as draft March 4, 2024 12:08
@Freejww Freejww marked this pull request as ready for review March 4, 2024 14:37
@Freejww Freejww changed the title chore(query): modify new_agg_hashtable payload transmission method in singleton chore(query): modify new_agg_hashtable payload transmission method on singleton and support new_agg_hashtable on cluster Mar 4, 2024
@sundy-li sundy-li enabled auto-merge March 5, 2024 03:14
@sundy-li sundy-li added this pull request to the merge queue Mar 5, 2024
Merged via the queue into datafuselabs:main with commit f04c367 Mar 5, 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
… singleton and support new_agg_hashtable on cluster (datafuselabs#14798)

* refactor new_agg_hashtable

* test

* test

* fmt

* test

* test

* test

* format explain

---------

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

(cherry picked from commit f04c367)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants