Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion r/R/dplyr-summarize.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ do_arrow_summarize <- function(.data, ..., .groups = NULL) {

mask <- arrow_mask(.data, aggregation = TRUE)

results <- list()
results <- empty_named_list()
for (i in seq_along(exprs)) {
# Iterate over the indices and not the names because names may be repeated
# (which overwrites the previous name)
Expand Down
10 changes: 10 additions & 0 deletions r/tests/testthat/test-dplyr-summarize.R
Original file line number Diff line number Diff line change
Expand Up @@ -369,3 +369,13 @@ test_that("Expressions on aggregations", {
tbl
)
})

test_that("Summarize with 0 arguments", {
expect_dplyr_equal(
input %>%
group_by(some_grouping) %>%
summarize() %>%
collect(),
tbl
)
})