Skip to content

[R] format_aggregation() should print options too #43894

@nealrichardson

Description

@nealrichardson

Describe the enhancement requested

We rely on C++ ToString methods for printing Arrow Expressions, which include functions, arguments, and options. But when we print arrow_dplyr_query objects with aggregations, we don't have Expressions at that time. The print method we use is

format_aggregation <- function(x) {
  paste0(x$fun, "(", paste(map(x$data, ~ .$ToString()), collapse = ","), ")")
}

So it shows the function and the arguments, but not any options. We either need to construct Expressions and print them, or map option names to C++ options and include them in format_aggregation.

Component(s)

R

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions