jonkeane commented on a change in pull request #11373:
URL: https://github.com/apache/arrow/pull/11373#discussion_r727317186
##########
File path: r/R/dataset-scan.R
##########
@@ -143,6 +139,26 @@ Scanner$create <- function(dataset,
#' @export
names.Scanner <- function(x) names(x$schema)
+#' @export
+head.Scanner <- function(x, n = 6L, ...) {
+ assert_that(n > 0) # For now
+ dataset___Scanner__head(x, n)
+}
+
+#' @export
+tail.Scanner <- function(x, n = 6L, ...) {
+ assert_that(n > 0) # For now
Review comment:
👍 on deferring this. I bet it will come up, but we can (hopefully) deal
with that when we have a proper way of doing this in a kernel.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]