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

Add agg_all_by() to the R client and add error handling around empty aggregations in agg_by() #4465

Merged
merged 11 commits into from
Sep 13, 2023

Conversation

alexpeters1208
Copy link
Contributor

This PR includes changes from #4464, so that should be merged first to minimize the diff. This PR is a blocker on #4363, because the correctness of the docstrings for agg_by() depend on whether it will accept empty aggregations.

This PR introduces agg_all_by() to the R wrapping, and adds C++ binding to support it. It also removes the ability of agg_by() to accept empty aggregations like th$agg_by(agg_min(), by = "grouping") by adding additional checks at the R level.

The current C++ level implementation of agg_all_by() and agg_by() will change based on recent conversations over the deprecated ComboAggRequest that they both utilize, but this PR aims to provide a stable API that can be distributed and documented independently of any underlying C++ changes.

R/rdeephaven/R/table_handle_wrapper.R Outdated Show resolved Hide resolved
R/rdeephaven/R/table_handle_wrapper.R Outdated Show resolved Hide resolved
R/rdeephaven/R/aggregate_wrapper.R Outdated Show resolved Hide resolved
R/rdeephaven/R/table_handle_wrapper.R Outdated Show resolved Hide resolved
@alexpeters1208 alexpeters1208 merged commit fa7ca6d into deephaven:main Sep 13, 2023
10 checks passed
@alexpeters1208 alexpeters1208 deleted the add-agg-all-by branch September 13, 2023 19:30
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants