ianmcook commented on a change in pull request #9745: URL: https://github.com/apache/arrow/pull/9745#discussion_r600111676
########## File path: r/R/dplyr.R ########## @@ -631,17 +671,85 @@ abandon_ship <- function(call, .data, msg = NULL) { eval.parent(call, 2) } -arrange.arrow_dplyr_query <- function(.data, ...) { +arrange.arrow_dplyr_query <- function(.data, ..., .by_group = FALSE) { + call <- match.call() + exprs <- quos(...) + if (.by_group) { + exprs <- c(quos(!!!dplyr::groups(.data)), exprs) + } + if (length(exprs) == 0) { + # Nothing to do + return(.data) + } .data <- arrow_dplyr_query(.data) if (query_on_dataset(.data)) { not_implemented_for_dataset("arrange()") } - # TODO(ARROW-11703) move this to Arrow - call <- match.call() - abandon_ship(call, .data) + is_dataset <- query_on_dataset(.data) + if (is_dataset) { Review comment: Oops. Dup code removed in ca38dba1069c323f279ba0affc98d743797d0ab9. I'll try removing this and testing on datasets. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org