Skip to content

Commit

Permalink
just kidding don't do that
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Jul 25, 2022
1 parent fa5ca29 commit 5427055
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions r/R/query-engine.R
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,7 @@ ExecPlan <- R6Class("ExecPlan",
# TODO(ARROW-16628): handle limit in ExecNode
slice_size <- node$extras$head %||% node$extras$tail
if (!is.null(slice_size)) {
out_head <- head(out, slice_size)
out$Close()
out <- out_head
out <- head(out, slice_size)
}
} else if (!is.null(node$extras$tail)) {
# TODO(ARROW-16630): proper BottomK support
Expand Down

0 comments on commit 5427055

Please sign in to comment.