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

[C++][Compute] Move Grouper tests into grouper_test.cc #45279

Closed
pitrou opened this issue Jan 16, 2025 · 1 comment
Closed

[C++][Compute] Move Grouper tests into grouper_test.cc #45279

pitrou opened this issue Jan 16, 2025 · 1 comment

Comments

@pitrou
Copy link
Member

pitrou commented Jan 16, 2025

Describe the enhancement requested

Currently, many tests for the Grouper and KeySegmenter implementations are present in acero/hash_aggregate_test.cc. We should move them into arrow/compute/row/grouper_test.cc where they belong.

This will also make hash_aggregate_test.cc slightly smaller and shorter to compile.

Component(s)

C++

pitrou added a commit that referenced this issue Jan 16, 2025
…45280)

### What changes are included in this PR?

1. Move tests for the Grouper and RowSegmenter implementations to `arrow/compute/row/grouper_test.cc` where they belong (this also makes `acero/hash_aggregate_test.cc` slightly shorter)
2. Introduce a `arrow_compute_testing` object library to hold compute-related testing utilities
3. Remove duplicate definitions of `ExecBatchFromJSON` from Dataset and Acero
4. Make `arrow/compute/kernels/test_util.h` internal

### Are these changes tested?

Yes, by existing tests and CI.

### Are there any user-facing changes?

No.

* GitHub Issue: #45279

Authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
@pitrou pitrou added this to the 20.0.0 milestone Jan 16, 2025
@pitrou
Copy link
Member Author

pitrou commented Jan 16, 2025

Issue resolved by pull request 45280
#45280

@pitrou pitrou closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant