Skip to content

refactor(hash-aggr): Migrate existing tests on GroupsHashAggregateStream#22953

Merged
alamb merged 1 commit into
apache:mainfrom
2010YOUY01:split-aggr-migrate-test
Jun 15, 2026
Merged

refactor(hash-aggr): Migrate existing tests on GroupsHashAggregateStream#22953
alamb merged 1 commit into
apache:mainfrom
2010YOUY01:split-aggr-migrate-test

Conversation

@2010YOUY01

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Part of #22710

Rationale for this change

The goal is after we have fully migrated from the old row_hash.rs, the existing UTs should be kept. Specifically, all tests that include GroupedHashAggregateStream

There are 3 previous PRs for the migration have been merged, some existing UTs are applicable to them, this PR migrated those tests to the new implementation.

The test migration includes:

  1. copy and paste test case
  2. Change GroupedHashAggregateStream to PartialHashAggregateStream (or other stream in new impl)
  3. Left a comment on the migrated test case, so in the final delete move it's more clear which tests have already been moved.

This PR moved 2 applicable UTs, and updated the comments for all the tests moved previously.

(Just some random thoughts, in general I don't think it's a good idea to write tests against low-level utilities like GroupedHashAggregateStream, all tests should better be at SQL level, or at least at ExecutionPlan level, so their test goal are more likely to survive refactors)

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label Jun 15, 2026
@2010YOUY01 2010YOUY01 requested a review from Rachelint June 15, 2026 11:35

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me -- thank you @2010YOUY01

@alamb alamb added this pull request to the merge queue Jun 15, 2026
@alamb

alamb commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Since this PR just adds new tests, I will merge it now to keep things moving -- we can update the tests as a follow on PR if anyone woudl like changes

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 15, 2026
@alamb alamb added this pull request to the merge queue Jun 15, 2026
Merged via the queue into apache:main with commit dede33c Jun 15, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants